commit 6eaf82d571c4d96843d9a7b51668dee4f3691f64 parent 11ec66ae0d2cedeb7eff7efd392967fb25efe47f Author: Paco Esteban <paco@onna.be> Date: Sun, 23 Jun 2019 20:34:32 +0200 better check for external dependencies rsync envsubst lowdown Diffstat:
M | deploy.sh | | | 10 | ++++++---- |
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/deploy.sh b/deploy.sh @@ -6,10 +6,12 @@ htmlDir="./htmlOut" gopherDir="./gopherOut" force=0 -if ! command -v lowdown > /dev/null; then - echo "Lowdown not found!" - exit 1 -fi +for cmd in lowdown envsubst rsync; do + if ! command -v "$cmd" > /dev/null; then + echo "$cmd not found!" + exit 1 + fi +done usage() { echo "$0 -d htmldir -g gopherdir [-f]"