diff options
-rw-r--r-- | lib/common.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/common.sh b/lib/common.sh index 0f13d1b..82a4519 100644 --- a/lib/common.sh +++ b/lib/common.sh @@ -29,7 +29,10 @@ _ob_abort() _ob_validate_var_name() { - case "${1}" in + local name="${1}" + shift 1 || _ob_abort + + case "${name}" in [!a-zA-Z_]*|*[!a-zA-Z0-9_]*) return 1 ;; |