ql命令行执行最后打印日志

This commit is contained in:
hanhh 2021-08-16 14:48:21 +08:00
parent 3a8101aad1
commit dfb0d73ef3

View File

@ -492,6 +492,7 @@ main() {
local end_time=$(date '+%Y-%m-%d %H:%M:%S') local end_time=$(date '+%Y-%m-%d %H:%M:%S')
local diff_time=$(($(date +%s -d "$end_time") - $(date +%s -d "$begin_time"))) local diff_time=$(($(date +%s -d "$end_time") - $(date +%s -d "$begin_time")))
echo -e "\n## 执行结束... $end_time 耗时 $diff_time" >> $log_path echo -e "\n## 执行结束... $end_time 耗时 $diff_time" >> $log_path
cat $log_path
} }
main "$@" main "$@"