pr feedback

This commit is contained in:
Ari Lazier 2015-12-17 12:42:02 -08:00
parent fc81a6c17b
commit 8f14d053f3
1 changed files with 5 additions and 8 deletions

View File

@ -1,3 +1,5 @@
#!/bin/bash
set -o pipefail set -o pipefail
set -e set -e
@ -17,9 +19,7 @@ PACKAGER_OUT="packager_out.txt"
function start_packager() function start_packager()
{ {
if [ -f $PACKAGER_OUT ]; then rm -f $PACKAGER_OUT
rm $PACKAGER_OUT
fi
sh ./node_modules/react-native/packager/packager.sh > packager_out.txt & sh ./node_modules/react-native/packager/packager.sh > packager_out.txt &
while :; while :;
do do
@ -28,17 +28,14 @@ function start_packager()
break break
else else
echo "Waiting for packager." echo "Waiting for packager."
sleep 1 sleep 2
fi fi
done done
} }
function kill_packager() function kill_packager()
{ {
if [ -f $PACKAGER_OUT ]; then rm -f $PACKAGER_OUT
rm $PACKAGER_OUT
fi
pkill node || true pkill node || true
} }