diff options
Diffstat (limited to 'csit/wait_for_port.sh')
-rwxr-xr-x | csit/wait_for_port.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/csit/wait_for_port.sh b/csit/wait_for_port.sh index 9262ba32..5a8be250 100755 --- a/csit/wait_for_port.sh +++ b/csit/wait_for_port.sh @@ -62,6 +62,11 @@ do while [ "$tmout" -gt 0 ] do + if command -v docker > /dev/null 2>&1 + then + docker ps + fi + nc -vz "$host" "$port" rc=$? @@ -69,7 +74,6 @@ do then break else - docker ps tmout=$((tmout-1)) sleep 1 fi |