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