Skip to content

AI agent skill that researches any topic across Reddit, X, YouTube, HN, Polymarket, and the web - then synthesizes a grounded summary

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

Trevin Chow7506cbd5426c
diff --git a/hooks/scripts/check-config.sh b/hooks/scripts/check-config.sh
index 3f28b036..c5a8f090 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