Skip to content

Commit 99ab5a7

Browse files
fix(ci): don't throw an error about missing lsof
1 parent cee989a commit 99ab5a7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scripts/test

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ function prism_is_running() {
1414
}
1515

1616
kill_server_on_port() {
17+
if [ ! "$(which lsof)" ]; then
18+
echo "Warning: lsof not found. Prism will not be killed."
19+
return 0
20+
fi
1721
pids=$(lsof -t -i tcp:"$1" || echo "")
1822
if [ "$pids" != "" ]; then
1923
kill "$pids"

0 commit comments

Comments
 (0)