mirror of
https://github.com/samply/bridgehead.git
synced 2025-07-04 09:50:20 +02:00
Make assertVarsNotEmpty() more robust
This commit is contained in:
@ -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
|
||||||
|
Reference in New Issue
Block a user