From 3756fa93e4ac718572f1484c098ce9a30297d8da Mon Sep 17 00:00:00 2001 From: whyour Date: Fri, 14 Oct 2022 21:17:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20ql=20=E5=91=BD=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shell/update.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shell/update.sh b/shell/update.sh index 9e048bac..50229120 100755 --- a/shell/update.sh +++ b/shell/update.sh @@ -433,7 +433,7 @@ main() { local p6=$6 local p7=$7 local log_time=$(date "+%Y-%m-%d-%H-%M-%S") - local log_path="$dir_log/update/${log_time}_$p1.log" + local log_path="$dir_log/update/$p1_${log_time}.log" local begin_time=$(date '+%Y-%m-%d %H:%M:%S') cmd=">> $log_path 2>&1" @@ -489,7 +489,7 @@ main() { usage ;; esac - if [[ $p1 != "repo" ]] && [[ $p1 != "raw" ]]; then + if [[ -f $log_path ]]; then cat $log_path fi }