From 387e07af3f417d2649c42f08b7a854ac2a844af4 Mon Sep 17 00:00:00 2001 From: Xinwei Xiong <3293172751@qq.com> Date: Fri, 12 Jan 2024 21:44:06 +0800 Subject: [PATCH] fix: mac deployment --- scripts/lib/util.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/lib/util.sh b/scripts/lib/util.sh index 1ec722d8f..f15a26346 100755 --- a/scripts/lib/util.sh +++ b/scripts/lib/util.sh @@ -311,7 +311,7 @@ openim::util::check_ports() { fi elif [[ "$OSTYPE" == "darwin"* ]]; then # For macOS, use lsof - info=$(lsof -i:"$port" | grep "\*:$port" || true) + info=$(lsof -P -i:"$port" | grep "LISTEN" || true) fi # Check if any process is using the port