mirror of https://github.com/docker/docs.git
integration helpers: fix the wait for docker join
It used to output `[: -eq: unary operator expected` since the grep command didn't give any output, therefore generating a syntax error. Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
parent
389da48e5e
commit
b7413d3138
|
@ -100,7 +100,7 @@ function swarm_join() {
|
|||
SWARM_JOIN_PID[$i]=$!
|
||||
((++i))
|
||||
done
|
||||
retry 30 1 [ `docker_swarm info | grep -q "Nodes: $i"` -eq 0 ]
|
||||
retry 30 1 [ -n $(docker_swarm info | grep -q "Nodes: $i") ]
|
||||
}
|
||||
|
||||
# Stops the manager.
|
||||
|
|
Loading…
Reference in New Issue