From 18dd4db1479e38420de3b404f2fce7d764e7b626 Mon Sep 17 00:00:00 2001 From: JimChenWYU Date: Tue, 24 Sep 2024 15:12:16 +0800 Subject: [PATCH] POSIX Shell --- scripts/probe.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/probe.sh b/scripts/probe.sh index 150ca636..2cda9591 100644 --- a/scripts/probe.sh +++ b/scripts/probe.sh @@ -8,7 +8,7 @@ PORT=9000 while true; do nc -zv ${IP} ${PORT} - if [ "$?" == "0" ]; then + if [ "$?" -eq "0" ]; then exit 0 fi sleep 2