mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-27 15:37:02 +00:00
POSIX Shell
This commit is contained in:
+5
-2
@@ -1,11 +1,14 @@
|
|||||||
#!/bin/bash
|
#!/bin/sh
|
||||||
|
|
||||||
|
# Please use POSIX Shell
|
||||||
|
# https://www.grymoire.com/Unix/Sh.html
|
||||||
|
|
||||||
IP=127.0.0.1
|
IP=127.0.0.1
|
||||||
PORT=9000
|
PORT=9000
|
||||||
|
|
||||||
while true; do
|
while true; do
|
||||||
nc -zv ${IP} ${PORT}
|
nc -zv ${IP} ${PORT}
|
||||||
if [[ "$?" == "0" ]]; then
|
if [ "$?" == "0" ]; then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
sleep 2
|
sleep 2
|
||||||
|
|||||||
Reference in New Issue
Block a user