From 7506cbd5426c7c88876aff5e04b9441995b4dcff Mon Sep 17 00:00:00 2001 From: Trevin Chow Date: Sat, 16 May 2026 23:35:19 -0700 Subject: [PATCH] fix(hooks): scope ENV_* to global (declare -g) so caller sees values --- hooks/scripts/check-config.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hooks/scripts/check-config.sh b/hooks/scripts/check-config.sh index 3f28b03..c5a8f09 100755 --- a/hooks/scripts/check-config.sh +++ b/hooks/scripts/check-config.sh @@ -37,7 +37,7 @@ load_env_vars() { # command substitution in backtick-containing comments value="${value%%[[:space:]]#*}" if [[ -n "$key" && -n "$value" ]]; then - declare "ENV_${key}=${value}" + declare -g "ENV_${key}=${value}" fi done < "$file" fi