Skip to content

Commit 870b106

Browse files
committed
feat: Add support for TF_VAR_<lowercase> env variables in --env-vars=
1 parent a8ed894 commit 870b106

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hooks/_common.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ function common::parse_and_export_env_vars {
128128
while true; do
129129
# Check if at least 1 env var exists in `$arg`
130130
# shellcheck disable=SC2016 # '${' should not be expanded
131-
if [[ "$arg" =~ '${'[A-Z_][A-Z0-9_]*'}' ]]; then
131+
if [[ "$arg" =~ '${'[A-Z_][A-Za-z0-9_]*'}' ]]; then
132132
# Get `ENV_VAR` from `.*${ENV_VAR}.*`
133133
local env_var_name=${arg#*$\{}
134134
env_var_name=${env_var_name%%\}*}

0 commit comments

Comments
 (0)