Skip to content

Commit

Permalink
~修复任务管理界面的空行显示
Browse files Browse the repository at this point in the history
  • Loading branch information
juewuy committed Feb 9, 2024
1 parent 050e2a0 commit c0adaf5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/task.sh
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,7 @@ task_manager(){ #任务管理列表
cat ${TMPDIR}/task_cronlist ${CRASHDIR}/task/running 2>/dev/null | sort -u | grep -oE "task/task.sh .*" | awk -F ' ' '{print $2" "$3}' > ${TMPDIR}/task_list
cat ${CRASHDIR}/task/bfstart ${CRASHDIR}/task/afstart ${CRASHDIR}/task/affirewall 2>/dev/null | awk -F ' ' '{print $2" "$3}' >> ${TMPDIR}/task_list
cat ${TMPDIR}/task_cronlist 2>/dev/null | sort -u | grep -oE " #.*" | grep -v "守护" | awk -F '#' '{print "0 旧版任务-"$2}' >> ${TMPDIR}/task_list
sed -i '/^ *$/d' ${TMPDIR}/task_list
rm -rf ${TMPDIR}/task_cronlist
#判断为空则返回
if [ ! -s ${TMPDIR}/task_list ];then
Expand Down

0 comments on commit c0adaf5

Please sign in to comment.