From 14c0e62471e4cff01ebd425cdff0a3206c90f48c Mon Sep 17 00:00:00 2001 From: pan <1029559041@qq.com> Date: Sun, 11 Oct 2020 03:43:34 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0openresty?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shell/savePid | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell/savePid b/shell/savePid index d763506..7a5c477 100644 --- a/shell/savePid +++ b/shell/savePid @@ -5,7 +5,7 @@ second=5s while true do pid=`findPortPid $1` - if [ `echo $pid|wc -l` -eq 0 ] + if [ -z $pid ] then echo "没有找到端口:$1的pid,$second后重试" sleep $second