Skip to content

Commit

Permalink
Make date invocation work with busybox
Browse files Browse the repository at this point in the history
The `--iso-8601` flag is not supported in busybox date. It does support
the `-I` flag, which is also supported in the GNU coreutil `date`
implementation – they are in fact synonyms.

This improves portability ever so slightly.
  • Loading branch information
lupont authored and RadxaYuntian committed Jun 12, 2024
1 parent 56efd38 commit 1d6a9e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rbuild
Original file line number Diff line number Diff line change
Expand Up @@ -741,7 +741,7 @@ fi

SECONDS=0
RBUILD_SHOW_EXECUTION_TIME="true"
RBUILD_STARTING_TIME="$(date --iso-8601=m | tr -d :)"
RBUILD_STARTING_TIME="$(date -Iminutes | tr -d :)"

main "$@"

Expand Down

0 comments on commit 1d6a9e0

Please sign in to comment.