mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-22 22:36:06 +08:00
修复 ql 命令
This commit is contained in:
parent
064b52b306
commit
3756fa93e4
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user