Make assertVarsNotEmpty() more robust

This commit is contained in:
Martin Lablans 2024-12-20 11:59:42 +01:00
parent e3510363ad
commit 2d590b8763
1 changed files with 1 additions and 1 deletions

View File

@ -116,7 +116,7 @@ assertVarsNotEmpty() {
MISSING_VARS="" MISSING_VARS=""
for VAR in $@; do for VAR in $@; do
if [ -z "${!VAR}" ]; then if [ -z "${VAR+x}" ] || [ -z "$VAR" ]; then
MISSING_VARS+="$VAR " MISSING_VARS+="$VAR "
fi fi
done done