diff --git a/run.sh b/run.sh index 3f7d6e0..6de28be 100644 --- a/run.sh +++ b/run.sh @@ -6,13 +6,13 @@ function run(){ while true do pid=`findPortPid $webPort` - if [ $pid ] + if [ -z $pid ] then - echo "pid is $pid" - break - else echo "pid not found!!!" sleep 1s + else + echo "pid is $pid" + break fi done