diff options
-rw-r--r-- | lib/template.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/template.sh b/lib/template.sh index ae1dde5..8cbdbfa 100644 --- a/lib/template.sh +++ b/lib/template.sh @@ -57,7 +57,7 @@ function template { _varname="${_varstr:3:-3}" # Skip any unset but referenced variables - if [ -z "${!_varname}" ]; then + if [ -z "${!_varname:-}" ]; then printf \ "WARN: Template variable '%s' is referenced but is unset.\n" \ ${_varname} >&2 |