mirror of
https://github.com/harttle/liquidjs.git
synced 2026-10-03 09:05:14 -07:00
fix(demo): ignore killall exit when express server already stopped
Co-authored-by: Cursor <[email protected]>
This commit is contained in:
@@ -13,8 +13,7 @@ while ! grep -q "Express running" "$LOG_FILE"; do
|
|||||||
done
|
done
|
||||||
curl http://127.0.0.1:3000 | grep -q 'Welcome to LiquidJS'
|
curl http://127.0.0.1:3000 | grep -q 'Welcome to LiquidJS'
|
||||||
RESULT=$?
|
RESULT=$?
|
||||||
kill $SERVER_PID 2>/dev/null || true
|
killall node || true
|
||||||
wait $SERVER_PID 2>/dev/null || true
|
|
||||||
rm $LOG_FILE
|
rm $LOG_FILE
|
||||||
if [ $RESULT != 0 ]; then
|
if [ $RESULT != 0 ]; then
|
||||||
exit 1
|
exit 1
|
||||||
|
|||||||
Reference in New Issue
Block a user