diff --git a/run.sh b/run.sh index a7c482d..5e65ef8 100644 --- a/run.sh +++ b/run.sh @@ -3,13 +3,18 @@ function run(){ nohup yarn start & - pid=-1 - while(( pid==-1 )) + while true do - sleep 1s pid=`findPortPid $webPort` + if [ pid -eq '' ] + then + echo pid not found!!! + sleep 1s + else + echo "pid is $pid" + break done - echo "pid is $pid" + touch $pid.log && chmod +x $pid.log }