Skip to content

Commit 34bb2c9

Browse files
authored
Update action.yml
1 parent 31932ce commit 34bb2c9

File tree

1 file changed

+3
-4
lines changed
  • .github/actions/Emscripten-Notebook-Tests

1 file changed

+3
-4
lines changed

.github/actions/Emscripten-Notebook-Tests/action.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ runs:
8484
# Jupyter Lite website.
8585
kill -9 $jupyter_lite_process_id
8686
87-
pkill -f "jupyter|jupyter-lite" || true
88-
kill -9 $(lsof -t -i:8000) 2>/dev/null || true
89-
sudo lsof -nP -iTCP -sTCP:LISTEN | grep -E "8000|jupyter|python|http"
90-
kill -9 $(lsof -t -i:8000) 2>/dev/null || true
87+
pkill -f "jupyter|jupyter-lite" || :
88+
PID=$(lsof -t -i:8000 || :) && [ -n "$PID" ] && kill -9 $PID || :
89+

0 commit comments

Comments
 (0)