mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-06-26 10:54:28 +02:00
Fix sed RE for mac os x
This commit is contained in:
parent
428d377b84
commit
29d54086f4
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ function random_minute()
|
|||
{
|
||||
case "${OSTYPE}" in
|
||||
darwin*)
|
||||
echo "0$( jot -r 1 0 59 )" | sed "s|.\+\(..\)\$|\1|g"
|
||||
echo "0$( jot -r 1 0 59 )" | sed -E "s|.+(..)|\1|g"
|
||||
;;
|
||||
*)
|
||||
echo "0$( rand -M 60 )" | sed "s|.\+\(..\)\$|\1|g"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue