diff options
Diffstat (limited to 'lib/substvars.sh')
-rw-r--r-- | lib/substvars.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/substvars.sh b/lib/substvars.sh index ee7e860..5ef662b 100644 --- a/lib/substvars.sh +++ b/lib/substvars.sh @@ -29,7 +29,7 @@ set_substvar() local value="${2}" # Convert variable name to lower case and validate. - name="$(echo "${name}" | tr 'A-Z-' 'a-z_')" + name="$(printf '%s\n' "${name}" | tr 'A-Z-' 'a-z_')" case "${name:- }" in *[!a-z0-9_]*) error 2 "$(get_msg 'substvar_invalid')" "${name}" |