mirror of
https://github.com/hoellen/dockerfiles.git
synced 2025-04-20 04:19:18 +00:00
ngxproxy: remove output from ping command
This commit is contained in:
parent
8f3bc2e9ae
commit
a803fc3ee8
@ -15,7 +15,7 @@ done
|
|||||||
|
|
||||||
while [ "$CONTAINER" == "" ]; do
|
while [ "$CONTAINER" == "" ]; do
|
||||||
read -p "Container: " CONTAINER
|
read -p "Container: " CONTAINER
|
||||||
ping -c 1 ${CONTAINER}
|
ping -c 1 ${CONTAINER} >/dev/null 2>&1
|
||||||
if [ "$?" != "0" ]; then
|
if [ "$?" != "0" ]; then
|
||||||
echo "WARNING: ${CONTAINER} seems to be unavailable."
|
echo "WARNING: ${CONTAINER} seems to be unavailable."
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user