修改日志名称格式

This commit is contained in:
whyour
2023-02-17 22:49:06 +08:00
parent 9bc7ca4094
commit 403ab7f0f0
6 changed files with 14 additions and 17 deletions
+3 -5
View File
@@ -413,9 +413,9 @@ format_log_time() {
local time="$2"
if [[ $is_macos -eq 1 ]]; then
echo $(date -j -f "$format" "$time" "+%Y-%m-%d-%H-%M-%S")
echo $(date -j -f "$format" "$time" "+%Y-%m-%d-%H-%M-%S-%3N")
else
echo $(date -d "$time" "+%Y-%m-%d-%H-%M-%S")
echo $(date -d "$time" "+%Y-%m-%d-%H-%M-%S-%3N")
fi
}
@@ -450,9 +450,7 @@ patch_version() {
echo
fi
if ! type ts-node &>/dev/null; then
pnpm add -g ts-node typescript tslib
fi
pnpm add -g pm2 ts-node typescript tslib
git config --global pull.rebase false