Update util.sh

This commit is contained in:
Xinwei Xiong
2024-01-16 10:57:10 +08:00
committed by GitHub
parent 2fb6674fc9
commit 14838b0ac8
+1 -1
View File
@@ -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