Browse Source

Aggiunta parametro per scegliere file

d0c 4 years ago
parent
commit
1f95a7ba13
1 changed files with 4 additions and 1 deletions
  1. 4 1
      megafono_bot.sh

+ 4 - 1
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
 #