diff --git a/run.sh b/run.sh index b09dc9c..506fcd3 100644 --- a/run.sh +++ b/run.sh @@ -3,12 +3,9 @@ function run(){ nohup yarn start & - pid=-1 - while(( pid==-1 )) - do - pid=`findPortPid $webPort` - echo "pid is $pid" - done + wait + pid=`findPortPid $webPort` + echo "pid is $pid" touch $pid.log && chmod +x $pid.log }