From 9c7b7e84c28defb418a0a1c856a45e96f3cbbe80 Mon Sep 17 00:00:00 2001 From: Raphi Date: Thu, 28 May 2015 15:43:24 +0200 Subject: [PATCH] Fail if $DIRECTORY is not declared as env variable --- deploy.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/deploy.sh b/deploy.sh index 46003ff..49a4bb3 100644 --- a/deploy.sh +++ b/deploy.sh @@ -17,6 +17,10 @@ if [ ! -n "$PASSWORD" ];then echo "missing option \"HOST\", aborting" exit 1 fi +if [ ! -n "$DIRECTORY" ];then + echo "missing option \"DIRECTORY\", aborting" + exit 1 +fi if [ ! -n "$IGNORE" ];then IGNORE='' fi