summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/control.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/control.sh b/lib/control.sh
index 5be3fbe..a792486 100644
--- a/lib/control.sh
+++ b/lib/control.sh
@@ -207,10 +207,10 @@ ob_set_substvar()
fi
# Convert variable name to uppercase and validate.
- name="$(echo "${name}" | tr 'a-z-' 'A-Z_')"
- case "${name}" in *[!A-Z0-9_]* | '')
+ case "${name}" in *[!A-Za-z0-9-]* | '')
return 125
esac
+ name="$(echo "${name}" | tr 'a-z-' 'A-Z_')"
# Trim leading and trailing whitespace from value.
read -r value <<-EOF