From 6fcfa0b50574712d6504c6d7061a15d2fb59fca2 Mon Sep 17 00:00:00 2001 From: steven Date: Thu, 30 Mar 2023 12:50:33 +0800 Subject: [PATCH] feat: fix --- Example/testHotUpdate/scripts/start-rn.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Example/testHotUpdate/scripts/start-rn.sh b/Example/testHotUpdate/scripts/start-rn.sh index 27ca66a..b14535f 100755 --- a/Example/testHotUpdate/scripts/start-rn.sh +++ b/Example/testHotUpdate/scripts/start-rn.sh @@ -4,7 +4,7 @@ trap 'kill $RN_PID' EXIT PLATFORM=$1 -npm start & +kill -9 $(lsof -i :8081 | awk '{print $2}' | tail -n +2) & npm start & RN_PID=$! sleep 2 && curl>/dev/null http://localhost:8081/index.bundle wait $RN_PID