Make compoBot.sh busybox friendly
Busybox's shuf command does not understand --arguments.
This commit is contained in:
parent
169234ddea
commit
76465a981a
1 changed files with 1 additions and 1 deletions
|
@ -74,7 +74,7 @@ while true ; do
|
||||||
sqlite3 "$database" "INSERT INTO alreadySent VALUES($_keySequenceROWID, datetime('now'));"
|
sqlite3 "$database" "INSERT INTO alreadySent VALUES($_keySequenceROWID, datetime('now'));"
|
||||||
|
|
||||||
## Sleep until the next time
|
## 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 "Waiting for $waitTime seconds"
|
||||||
echo ""
|
echo ""
|
||||||
sleep $waitTime
|
sleep $waitTime
|
||||||
|
|
Loading…
Reference in a new issue