Do not process hostnames that starts with a single # (in case someone accidently used the incorrect format to comment out lines

This commit is contained in:
Christian Bolstad 2023-01-14 13:52:53 +01:00
parent 237ed1303d
commit 237840aa33
1 changed files with 6 additions and 3 deletions

View File

@ -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 ]]