mirror of
https://github.com/raynormast/fake-firehose.git
synced 2024-12-22 07:43:10 +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
|
||||||
|
if [[ ! $url == "#"* ]]
|
||||||
|
then
|
||||||
echo "[INFO] Opening $url to stream"
|
echo "[INFO] Opening $url to stream"
|
||||||
sleep $streamDelay
|
sleep $streamDelay
|
||||||
./stream-url.sh $url &
|
./stream-url.sh $url &
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
if [[ $runFirehose == true ]]
|
if [[ $runFirehose == true ]]
|
||||||
|
|
Loading…
Reference in a new issue