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
1 changed files with 4 additions and 0 deletions

View File

@ -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