mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-06-26 10:54:28 +02:00
Add missing -r
option to jot
- Otherwise output is always `0` and not a random number
This commit is contained in:
parent
a6d97365fc
commit
428d377b84
1 changed files with 1 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue