From 76465a981a8c2931d82fb38d2843cddfd142a30b Mon Sep 17 00:00:00 2001 From: "J. Elfring (x)" Date: Fri, 18 Sep 2020 12:31:37 +0200 Subject: [PATCH] Make compoBot.sh busybox friendly Busybox's shuf command does not understand --arguments. --- compoBot.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compoBot.sh b/compoBot.sh index 322b783..5756bdd 100755 --- a/compoBot.sh +++ b/compoBot.sh @@ -74,7 +74,7 @@ while true ; do sqlite3 "$database" "INSERT INTO alreadySent VALUES($_keySequenceROWID, datetime('now'));" ## Sleep until the next time - waitTime=$(shuf --input-range=$minWait-$maxWait --head-count=1) + waitTime=$(shuf -i $minWait-$maxWait -n 1) echo "Waiting for $waitTime seconds" echo "" sleep $waitTime