From 1f95a7ba1341fc99db343b0e80a5f91677955ca5 Mon Sep 17 00:00:00 2001 From: d0c Date: Sun, 8 Dec 2019 17:03:46 +0100 Subject: [PATCH] Aggiunta parametro per scegliere file --- megafono_bot.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/megafono_bot.sh b/megafono_bot.sh index 9c88b0d..b37b9e4 100755 --- a/megafono_bot.sh +++ b/megafono_bot.sh @@ -9,9 +9,12 @@ FLOOR_HOUR_SLEEP_INTERVAL=5 CEILING_HOUR_SLEEP_INTERVAL=19 # File containing the toots to post +if [ ! -z "$1" ]; then + DATA_FILE=$1 +else DATA_FILE=megafono.txt +fi -# # CONFIGURATION END #