POSIX Shell

This commit is contained in:
JimChenWYU
2024-09-24 15:12:16 +08:00
parent a601be3af0
commit 18dd4db147

View File

@@ -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