diff options
author | Aaron Ball <nullspoon@oper.io> | 2017-06-26 20:06:03 -0600 |
---|---|---|
committer | Aaron Ball <nullspoon@oper.io> | 2017-06-26 20:06:03 -0600 |
commit | a224d4e77ec027718a37dea8b1503fe6f512611d (patch) | |
tree | 1744bef07ca2192f57fa9eab47d536756c7cfa4b | |
parent | 2fa07cf2f9c960da80a946213f5970921527be83 (diff) | |
parent | 239d00878e5ec4a09518a2e39b5d81d6aaf1193e (diff) | |
download | portimg-a224d4e77ec027718a37dea8b1503fe6f512611d.tar.gz portimg-a224d4e77ec027718a37dea8b1503fe6f512611d.tar.xz |
Merge branch 'libtemplate-warn-msg'
-rw-r--r-- | lib/template.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/template.sh b/lib/template.sh index 8cbdbfa..b8a7361 100644 --- a/lib/template.sh +++ b/lib/template.sh @@ -59,8 +59,9 @@ function template { # Skip any unset but referenced variables if [ -z "${!_varname:-}" ]; then printf \ - "WARN: Template variable '%s' is referenced but is unset.\n" \ - ${_varname} >&2 + "WARN: Unbound variable '%s' in template '%s'.\n" \ + "${_varname}" \ + "${src}" >&2 continue fi |