Fix: correctly check required arguments

This commit is contained in:
maride 2024-08-09 09:54:54 +02:00
parent d12ff58630
commit b0df927e75

View File

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