mirror of https://github.com/samply/bridgehead.git
Make assertVarsNotEmpty() more robust
This commit is contained in:
parent
e3510363ad
commit
2d590b8763
|
@ -116,7 +116,7 @@ assertVarsNotEmpty() {
|
|||
MISSING_VARS=""
|
||||
|
||||
for VAR in $@; do
|
||||
if [ -z "${!VAR}" ]; then
|
||||
if [ -z "${VAR+x}" ] || [ -z "$VAR" ]; then
|
||||
MISSING_VARS+="$VAR "
|
||||
fi
|
||||
done
|
||||
|
|
Loading…
Reference in New Issue