diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-03-18 14:21:17 (EDT) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-03-18 14:21:17 (EDT) |
commit | e6b87cbe52ade706051e71e156bbc976c5c062f5 (patch) | |
tree | 6332c33331b0af5e0f267c37c5453e5dec1f4eb5 | |
parent | d013138f8a1af30d29cd2413f6740346158abc35 (diff) |
_ob_validate_var_name(): Check for empty var name
-rw-r--r-- | lib/common.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/common.sh b/lib/common.sh index 82a4519..3da0dea 100644 --- a/lib/common.sh +++ b/lib/common.sh @@ -33,7 +33,7 @@ _ob_validate_var_name() shift 1 || _ob_abort case "${name}" in - [!a-zA-Z_]*|*[!a-zA-Z0-9_]*) + ''|[!a-zA-Z_]*|*[!a-zA-Z0-9_]*) return 1 ;; esac |