Skip to content

Commit

Permalink
fix: change logging date format (#509)
Browse files Browse the repository at this point in the history
  • Loading branch information
jiro4989 authored Sep 15, 2024
1 parent e515832 commit 3a60cf0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions install_nim.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

set -eu

DATE_FORMAT="%Y-%m-%d %H:%M:%S"

fetch_tags() {
# https://docs.github.com/ja/rest/git/refs?apiVersion=2022-11-28
curl \
Expand Down Expand Up @@ -30,11 +32,11 @@ filter_os_asset() {
}

info() {
echo "$(date) [INFO] $*"
echo "$(date +"$DATE_FORMAT") [INFO] $*"
}

err() {
echo "$(date) [ERR] $*"
echo "$(date +"$DATE_FORMAT") [ERR] $*"
}

tag_regexp() {
Expand Down

0 comments on commit 3a60cf0

Please sign in to comment.