We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cee989a commit 99ab5a7Copy full SHA for 99ab5a7
scripts/test
@@ -14,6 +14,10 @@ function prism_is_running() {
14
}
15
16
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
21
pids=$(lsof -t -i tcp:"$1" || echo "")
22
if [ "$pids" != "" ]; then
23
kill "$pids"
0 commit comments