Skip to content

Automate browser based workflows with AI

avoid running kill of skyvern is not running (#2416)

Asher Foabc11625428f3
diff --git a/run_skyvern.sh b/run_skyvern.sh
index 259d2df6a..fe20dac45 100755
--- a/run_skyvern.sh
+++ b/run_skyvern.sh
@@ -1,6 +1,9 @@
#!/bin/bash
-kill $(lsof -t -i :8000)
+pid=$(lsof -t -i :8000)
+if [ ! -z "$pid" ]; then
+ kill $pid
+fi
if [ ! -f .env ]; then
cp .env.example .env
diff --git a/run_ui.sh b/run_ui.sh
index ad7559574..267cb220b 100755
--- a/run_ui.sh
+++ b/run_ui.sh
@@ -1,6 +1,9 @@
#!/bin/bash
-kill $(lsof -t -i :8080)
+pid=$(lsof -t -i :8080)
+if [ ! -z "$pid" ]; then
+ kill $pid
+fi
cd skyvern-frontend