mirror of
https://github.com/raynormast/fake-firehose.git
synced 2024-12-21 23:33:14 +00:00
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:
parent
237ed1303d
commit
237840aa33
1 changed files with 6 additions and 3 deletions
|
@ -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 ]]
|
||||||
|
|
Loading…
Reference in a new issue