diff options
author | Aaron Ball <nullspoon@oper.io> | 2017-06-26 19:50:30 -0600 |
---|---|---|
committer | Aaron Ball <nullspoon@oper.io> | 2017-06-26 19:50:30 -0600 |
commit | 2fa07cf2f9c960da80a946213f5970921527be83 (patch) | |
tree | fb85477f1ffea1353de10bf968bbd526abaa28ec | |
parent | f7c43650c0942ee69851213e6e8dc296da23585e (diff) | |
parent | e1bc223978c81066f3e3bb1d11d9a1a7d5bf9a22 (diff) | |
download | portimg-2fa07cf2f9c960da80a946213f5970921527be83.tar.gz portimg-2fa07cf2f9c960da80a946213f5970921527be83.tar.xz |
Merge branch 'libtemplate-fix'
-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 |