修复订阅执行日志输出

This commit is contained in:
whyour
2022-05-17 22:27:41 +08:00
parent cde4646fe1
commit 0927682abf
5 changed files with 17 additions and 5 deletions
+3 -1
View File
@@ -529,7 +529,9 @@ main() {
esac
local end_time=$(date '+%Y-%m-%d %H:%M:%S')
local diff_time=$(($(date +%s -d "$end_time") - $(date +%s -d "$begin_time")))
echo -e "\n## 执行结束... $end_time 耗时 $diff_time" >>$log_path
if [[ $p1 != "repo" ]] && [[ $p1 != "raw" ]]; then
echo -e "\n## 执行结束... $end_time 耗时 $diff_time" >>$log_path
fi
cat $log_path
}