mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-25 00:16:06 +08:00
ql命令行执行最后打印日志
This commit is contained in:
parent
3a8101aad1
commit
dfb0d73ef3
|
@ -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 "$@"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user