Skip to content

Commit

Permalink
dependency on pstree for 03_pstree_kill
Browse files Browse the repository at this point in the history
  • Loading branch information
phyver committed Jun 7, 2021
1 parent 4fa1c2d commit a534684
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 0 deletions.
6 changes: 6 additions & 0 deletions missions/processes/03_pstree_kill/i18n/en.po
Expand Up @@ -31,6 +31,12 @@ msgstr "Did you melt some of the snowflakes?"
msgid "Did you remove some of the fairy's spells?"
msgstr "Did you remove some of the fairy's spells?"

#, sh-format
msgid "The command 'pstree' is required for mission $MISSION_NAME.\n"
"(Debian / Ubuntu: install package 'psmisc')"
msgstr "The command 'pstree' is required for mission $MISSION_NAME.\n"
"(Debian / Ubuntu: install package 'psmisc')"

msgid "There still is some coal in the cellar!"
msgstr "There still is some coal in the cellar!"

Expand Down
6 changes: 6 additions & 0 deletions missions/processes/03_pstree_kill/i18n/fr.po
Expand Up @@ -30,6 +30,12 @@ msgstr "Est-ce que vous avez fait fondre des flocons ?"
msgid "Did you remove some of the fairy's spells?"
msgstr "Est-ce que vous avez supprimé un sortilège de la fée ?"

#, sh-format
msgid "The command 'pstree' is required for mission $MISSION_NAME.\n"
"(Debian / Ubuntu: install package 'psmisc')"
msgstr "La command 'pstree' est nécesaire pour la mission $MISSION_NAME.\n"
"(Debian / Ubuntu : installez le paquet 'psmisc')"

msgid "There still is some coal in the cellar!"
msgstr "Il reste des morceaux de charbon dans la cave !"

Expand Down
5 changes: 5 additions & 0 deletions missions/processes/03_pstree_kill/i18n/template.pot
Expand Up @@ -30,6 +30,11 @@ msgstr ""
msgid "Did you remove some of the fairy's spells?"
msgstr ""

#, sh-format
msgid "The command 'pstree' is required for mission $MISSION_NAME.\n"
"(Debian / Ubuntu: install package 'psmisc')"
msgstr ""

msgid "There still is some coal in the cellar!"
msgstr ""

Expand Down
8 changes: 8 additions & 0 deletions missions/processes/03_pstree_kill/init.sh
Expand Up @@ -33,6 +33,14 @@ _mission_init() {
mission_source "$MISSION_DIR/deps.sh" || return 1
fi

if ! command -v pstree >/dev/null
then
echo "$(eval_gettext "The command 'pstree' is required for mission \$MISSION_NAME.
(Debian / Ubuntu: install package 'psmisc')")" >&2
return 1

fi

if [ -n "$CC" ]
then
(
Expand Down

0 comments on commit a534684

Please sign in to comment.