Make compoBot.sh busybox friendly

Busybox's shuf command does not understand --arguments.
This commit is contained in:
J. Elfring (x) 2020-09-18 12:31:37 +02:00
parent 169234ddea
commit 76465a981a

View file

@ -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