fix(hooks): scope ENV_* to global (declare -g) so caller sees values

This commit is contained in:
Trevin Chow
2026-05-16 23:35:19 -07:00
parent a6bd481e61
commit 7506cbd542
+1 -1
View File
@@ -37,7 +37,7 @@ load_env_vars() {
# command substitution in backtick-containing comments # command substitution in backtick-containing comments
value="${value%%[[:space:]]#*}" value="${value%%[[:space:]]#*}"
if [[ -n "$key" && -n "$value" ]]; then if [[ -n "$key" && -n "$value" ]]; then
declare "ENV_${key}=${value}" declare -g "ENV_${key}=${value}"
fi fi
done < "$file" done < "$file"
fi fi