Skip to content

Commit

Permalink
enter: make log_timestamp date format universally compatible (#1343)
Browse files Browse the repository at this point in the history
Tested as working on Chimera Linux with FreeBSD date(1) and Alpine Linux
with busybox date(1) which both cannot report nanoseconds or timezone
with ':' separator only supported on GNU coreutils which handles these
extensions via a strftime() wrapper in gnulib.
  • Loading branch information
JamiKettunen committed May 1, 2024
1 parent c8fcb12 commit cbd55e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion distrobox-enter
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,7 @@ if [ "${container_status}" != "running" ]; then
#
# Here, we save the timestamp before launching the start command, so we can
# be sure we're working with this very same session of logs later.
log_timestamp="$(date +%FT%T.%N%:z)"
log_timestamp="$(date -u +%FT%T)"
${container_manager} start "${container_name}" > /dev/null
#
# Check if the container is going in error status earlier than the
Expand Down

0 comments on commit cbd55e5

Please sign in to comment.