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=""
|
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
|
||||||
|
|
Loading…
Reference in New Issue