From 237840aa334a2e9f060af6be7b4fb9e5bee0dc9d Mon Sep 17 00:00:00 2001 From: Christian Bolstad Date: Sat, 14 Jan 2023 13:52:53 +0100 Subject: [PATCH] Do not process hostnames that starts with a single # (in case someone accidently used the incorrect format to comment out lines --- scripts/start-firehose.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/scripts/start-firehose.sh b/scripts/start-firehose.sh index 7d615c1..910b314 100644 --- a/scripts/start-firehose.sh +++ b/scripts/start-firehose.sh @@ -82,9 +82,12 @@ cat /config/hashtag-urls.txt >> /config/urls.txt sort -u /config/urls.txt | while read -r url do - echo "[INFO] Opening $url to stream" - sleep $streamDelay - ./stream-url.sh $url & + if [[ ! $url == "#"* ]] + then + echo "[INFO] Opening $url to stream" + sleep $streamDelay + ./stream-url.sh $url & + fi done if [[ $runFirehose == true ]]