add dep check

This commit is contained in:
Simon Vieille 2019-06-12 12:32:03 +02:00
parent 3bbb5b8122
commit 1e2d5f1cd8
Signed by: deblan
GPG Key ID: 03383D15A1D31745
1 changed files with 12 additions and 0 deletions

View File

@ -9,3 +9,15 @@ if ! which envsubst 2>/dev/null >/dev/null; then
exit 1
fi
if ! which base64 2>/dev/null >/dev/null; then
printf "Le programme \`envsubst\` est nécessaire. Installer \`coreutils\`.\n"
exit 1
fi
if ! which smartcl 2>/dev/null >/dev/null; then
printf "Le programme \`envsubst\` est nécessaire. Installer \`smartmontools\`.\n"
exit 1
fi