mirror of
https://github.com/whyour/qinglong.git
synced 2026-07-01 04:40:38 +08:00
修改日志名称格式
This commit is contained in:
@@ -96,7 +96,6 @@ start_public() {
|
||||
main() {
|
||||
echo -e "=====> 开始检测"
|
||||
npm i -g pnpm
|
||||
pnpm add -g pm2
|
||||
patch_version
|
||||
start_public
|
||||
copy_dep
|
||||
|
||||
+1
-1
@@ -173,7 +173,7 @@ run_concurrent() {
|
||||
|
||||
local envs=$(eval echo "\$${env_param}")
|
||||
local array=($(echo $envs | sed 's/&/ /g'))
|
||||
single_log_time=$(date "+%Y-%m-%d-%H-%M-%S.%N")
|
||||
single_log_time=$(date "+%Y-%m-%d-%H-%M-%S.%3N")
|
||||
|
||||
cd $dir_scripts
|
||||
local relative_path="${file_param%/*}"
|
||||
|
||||
+3
-5
@@ -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
|
||||
|
||||
|
||||
+1
-1
@@ -231,7 +231,7 @@ usage() {
|
||||
update_qinglong() {
|
||||
local mirror="github"
|
||||
local githubStatus=$(curl -s -m 2 -IL "https://github.com" | grep 200)
|
||||
if [ "$githubStatus" == "" ]; then
|
||||
if [[ ! -z $githubStatus ]]; then
|
||||
mirror="gitee"
|
||||
fi
|
||||
echo -e "使用 ${mirror} 源更新...\n"
|
||||
|
||||
Reference in New Issue
Block a user