Fail if $DIRECTORY is not declared as env variable
This commit is contained in:
parent
6c67e5db58
commit
9c7b7e84c2
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Reference in a new issue