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

View file

@ -82,9 +82,12 @@ cat /config/hashtag-urls.txt >> /config/urls.txt
sort -u /config/urls.txt | while read -r url sort -u /config/urls.txt | while read -r url
do do
echo "[INFO] Opening $url to stream" if [[ ! $url == "#"* ]]
sleep $streamDelay then
./stream-url.sh $url & echo "[INFO] Opening $url to stream"
sleep $streamDelay
./stream-url.sh $url &
fi
done done
if [[ $runFirehose == true ]] if [[ $runFirehose == true ]]