AI agent skill that researches any topic across Reddit, X, YouTube, HN, Polymarket, and the web - then synthesizes a grounded summary
Python ai-promptsai-skillblueskyclaudeclaude-codeclawhubdeep-researchhackernewsinstagramopenclawpolymarketrecencyredditresearchsocial-mediatiktoktrendstwitterweb-searchyoutube
fix(check-config): normalize EXCLUDE_SOURCES (lowercase + whitespace) before matching
Tobi095bcae915ad
diff --git a/hooks/scripts/check-config.sh b/hooks/scripts/check-config.shindex 81da6d23..85403cc1 100755--- a/hooks/scripts/check-config.sh+++ b/hooks/scripts/check-config.sh@@ -97,13 +97,17 @@ if [[ -n "$HAS_BSKY" ]]; thenSOURCE_COUNT=$((SOURCE_COUNT + 1))fiif [[ -n "$HAS_SCRAPECREATORS" ]]; then- # Start with Reddit comments + TikTok + Instagram, subtract any in EXCLUDE_SOURCES+ # Start with Reddit comments + TikTok + Instagram, subtract any in EXCLUDE_SOURCES.+ # Normalise EXCLUDED (lowercase + collapse whitespace around commas + strip outer+ # whitespace) so the matching mirrors pipeline.py's .strip().lower() parsing.SC_ADD=3EXCLUDED="${ENV_EXCLUDE_SOURCES:-${EXCLUDE_SOURCES:-}}"- if [[ ",$EXCLUDED," == *",tiktok,"* ]]; then+ EXCLUDED_NORM=$(printf '%s' "$EXCLUDED" | tr '[:upper:]' '[:lower:]' \+ | sed -E 's/[[:space:]]*,[[:space:]]*/,/g; s/^[[:space:]]+//; s/[[:space:]]+$//')+ if [[ ",$EXCLUDED_NORM," == *",tiktok,"* ]]; thenSC_ADD=$((SC_ADD - 1))fi- if [[ ",$EXCLUDED," == *",instagram,"* ]]; then+ if [[ ",$EXCLUDED_NORM," == *",instagram,"* ]]; thenSC_ADD=$((SC_ADD - 1))fiSOURCE_COUNT=$((SOURCE_COUNT + SC_ADD))