Add missing -r option to jot

- Otherwise output is always `0` and not a random number
This commit is contained in:
Thomas Lauf 2019-03-02 17:43:50 +01:00
parent a6d97365fc
commit 428d377b84

View file

@ -16,7 +16,7 @@ function random_minute()
{
case "${OSTYPE}" in
darwin*)
echo "0$( jot 1 0 59 )" | sed "s|.\+\(..\)\$|\1|g"
echo "0$( jot -r 1 0 59 )" | sed "s|.\+\(..\)\$|\1|g"
;;
*)
echo "0$( rand -M 60 )" | sed "s|.\+\(..\)\$|\1|g"