Skip to content

Commit 5478464

Browse files
aozhuochaoaozhuochao
authored andcommitted
jobs >> /dev/null 2>&1
1 parent 7fd3031 commit 5478464

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mysqldump/dump.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ else
7272
pgrep -f "$KEYWORD" 2>&1
7373

7474
# 检查当前是否有作业
75+
# 防止缓存
76+
jobs >> /dev/null 2>&1
7577
if [ $(jobs | wc -l) -gt 0 ]; then
7678
echo "There are jobs running in the background."
7779
fi

0 commit comments

Comments
 (0)