Fail if $DIRECTORY is not declared as env variable

This commit is contained in:
Raphi 2015-05-28 15:43:24 +02:00
parent 6c67e5db58
commit 9c7b7e84c2

View file

@ -17,6 +17,10 @@ if [ ! -n "$PASSWORD" ];then
echo "missing option \"HOST\", aborting" echo "missing option \"HOST\", aborting"
exit 1 exit 1
fi fi
if [ ! -n "$DIRECTORY" ];then
echo "missing option \"DIRECTORY\", aborting"
exit 1
fi
if [ ! -n "$IGNORE" ];then if [ ! -n "$IGNORE" ];then
IGNORE='' IGNORE=''
fi fi