fix(demo): ignore killall exit when express server already stopped

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Yang Jun
2026-07-08 23:43:31 +08:00
co-authored by Cursor
parent eddc04c411
commit a83e56442c
+1 -2
View File
@@ -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