diff --git a/megafono_bot.sh b/megafono_bot.sh index 88a2ec6..6792f5b 100755 --- a/megafono_bot.sh +++ b/megafono_bot.sh @@ -1,13 +1,18 @@ SLEEP_INTERVAL=3h -# -# Last line should be empty, so we dont need an additional read here -# after the while loop -# -while read line + +while : do - echo "[INFO] Now tooting: $line" - ./toot.sh $line >/dev/null 2>&1 & - sleep ${SLEEP_INTERVAL} -done < megafono.txt \ No newline at end of file + # + # Last line should be empty, so we dont need an additional read here + # after the while loop + # + while read line + do + echo "[INFO] Now tooting: $line" + ./toot.sh $line >/dev/null 2>&1 & + sleep ${SLEEP_INTERVAL} + done < megafono.txt + +done \ No newline at end of file