Skip to content

Commit

Permalink
修复进程ID检测结果可能不正确的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
neroxps committed Jun 9, 2021
1 parent 9034c19 commit 7bb066a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions OpenCard/start-v4.sh
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,8 @@ else
_printTime "开始执行入会领豆...."
nohup python3 ${scriptPath} 2>&1 > ${logfile} &
PID=$!
echo > /tmp/openCard_$PID
sleep 5
if ! ps | grep -q $PID ;then
if ! ps | grep -v grep | grep -q $PID ;then
_printTime "执行失败!"
_printTime "请检查日志: tail -f ${logfile}"
else
Expand Down

0 comments on commit 7bb066a

Please sign in to comment.