Skip to content

Commit 3a60cf0

Browse files
authored
fix: change logging date format (#509)
1 parent e515832 commit 3a60cf0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

install_nim.sh

+4-2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
set -eu
44

5+
DATE_FORMAT="%Y-%m-%d %H:%M:%S"
6+
57
fetch_tags() {
68
# https://docs.github.com/ja/rest/git/refs?apiVersion=2022-11-28
79
curl \
@@ -30,11 +32,11 @@ filter_os_asset() {
3032
}
3133

3234
info() {
33-
echo "$(date) [INFO] $*"
35+
echo "$(date +"$DATE_FORMAT") [INFO] $*"
3436
}
3537

3638
err() {
37-
echo "$(date) [ERR] $*"
39+
echo "$(date +"$DATE_FORMAT") [ERR] $*"
3840
}
3941

4042
tag_regexp() {

0 commit comments

Comments
 (0)