Fix: correctly check required arguments
This commit is contained in:
parent
d12ff58630
commit
b0df927e75
@ -13,7 +13,7 @@ fi
|
||||
source "$CONF"
|
||||
|
||||
# Check if required variables are set
|
||||
if [ "$SSH_URI$SSH_PASS$TARGET" = "" ]; then
|
||||
if [ "$SSH_URI" = "" ] || [ "$SSH_PASS" = "" ] || [ "$TARGET" = "" ]; then
|
||||
echo "Config file $CONF must contain SSH_URI, SSH_PASS and TARGET" 1>&2
|
||||
exit 1
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user