mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-24 07:16:08 +08:00
修复error_log文件读取
This commit is contained in:
parent
1d01508164
commit
7bc5004683
|
@ -435,12 +435,12 @@ main() {
|
||||||
case $p1 in
|
case $p1 in
|
||||||
update)
|
update)
|
||||||
echo -e "## 开始执行... $begin_time\n" >> $log_path
|
echo -e "## 开始执行... $begin_time\n" >> $log_path
|
||||||
cat $task_error_log_path >> $log_path
|
[[ -f $task_error_log_path ]] && cat $task_error_log_path >> $log_path
|
||||||
update_qinglong "$2" >> $log_path
|
update_qinglong "$2" >> $log_path
|
||||||
;;
|
;;
|
||||||
extra)
|
extra)
|
||||||
echo -e "## 开始执行... $begin_time\n" >> $log_path
|
echo -e "## 开始执行... $begin_time\n" >> $log_path
|
||||||
cat $task_error_log_path >> $log_path
|
[[ -f $task_error_log_path ]] && cat $task_error_log_path >> $log_path
|
||||||
run_extra_shell >> $log_path
|
run_extra_shell >> $log_path
|
||||||
;;
|
;;
|
||||||
repo)
|
repo)
|
||||||
|
@ -448,7 +448,7 @@ main() {
|
||||||
get_uniq_path "$p2" "$p6"
|
get_uniq_path "$p2" "$p6"
|
||||||
log_path="$dir_log/update/${log_time}_${uniq_path}.log"
|
log_path="$dir_log/update/${log_time}_${uniq_path}.log"
|
||||||
echo -e "## 开始执行... $begin_time\n" >> $log_path
|
echo -e "## 开始执行... $begin_time\n" >> $log_path
|
||||||
cat $task_error_log_path >> $log_path
|
[[ -f $task_error_log_path ]] && cat $task_error_log_path >> $log_path
|
||||||
if [[ -n $p2 ]]; then
|
if [[ -n $p2 ]]; then
|
||||||
update_repo "$p2" "$p3" "$p4" "$p5" "$p6" >> $log_path
|
update_repo "$p2" "$p3" "$p4" "$p5" "$p6" >> $log_path
|
||||||
else
|
else
|
||||||
|
@ -461,7 +461,7 @@ main() {
|
||||||
get_uniq_path "$p2"
|
get_uniq_path "$p2"
|
||||||
log_path="$dir_log/update/${log_time}_${uniq_path}.log"
|
log_path="$dir_log/update/${log_time}_${uniq_path}.log"
|
||||||
echo -e "## 开始执行... $begin_time\n" >> $log_path
|
echo -e "## 开始执行... $begin_time\n" >> $log_path
|
||||||
cat $task_error_log_path >> $log_path
|
[[ -f $task_error_log_path ]] && cat $task_error_log_path >> $log_path
|
||||||
if [[ -n $p2 ]]; then
|
if [[ -n $p2 ]]; then
|
||||||
update_raw "$p2" >> $log_path
|
update_raw "$p2" >> $log_path
|
||||||
else
|
else
|
||||||
|
@ -471,17 +471,17 @@ main() {
|
||||||
;;
|
;;
|
||||||
rmlog)
|
rmlog)
|
||||||
echo -e "## 开始执行... $begin_time\n" >> $log_path
|
echo -e "## 开始执行... $begin_time\n" >> $log_path
|
||||||
cat $task_error_log_path >> $log_path
|
[[ -f $task_error_log_path ]] && cat $task_error_log_path >> $log_path
|
||||||
. $dir_shell/rmlog.sh "$p2" >> $log_path
|
. $dir_shell/rmlog.sh "$p2" >> $log_path
|
||||||
;;
|
;;
|
||||||
bot)
|
bot)
|
||||||
echo -e "## 开始执行... $begin_time\n" >> $log_path
|
echo -e "## 开始执行... $begin_time\n" >> $log_path
|
||||||
cat $task_error_log_path >> $log_path
|
[[ -f $task_error_log_path ]] && cat $task_error_log_path >> $log_path
|
||||||
. $dir_shell/bot.sh >> $log_path
|
. $dir_shell/bot.sh >> $log_path
|
||||||
;;
|
;;
|
||||||
check)
|
check)
|
||||||
echo -e "## 开始执行... $begin_time\n" >> $log_path
|
echo -e "## 开始执行... $begin_time\n" >> $log_path
|
||||||
cat $task_error_log_path >> $log_path
|
[[ -f $task_error_log_path ]] && cat $task_error_log_path >> $log_path
|
||||||
. $dir_shell/check.sh >> $log_path
|
. $dir_shell/check.sh >> $log_path
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user