From 425033df20692eb98ab15dfcf6f1f83bb817395f Mon Sep 17 00:00:00 2001 From: Alfonso Acosta Date: Mon, 14 Aug 2017 14:36:02 +0000 Subject: [PATCH] Make sh linter happy --- scope | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/scope b/scope index afaa8b839..ed464e75b 100755 --- a/scope +++ b/scope @@ -201,8 +201,8 @@ launch() { print_app_endpoints() { HOST_SUFFIX="" if [ -n "${DOCKER_HOST+x}" ]; then - DOCKER_HOSTNAME=$(docker run --rm $USERNS_HOST --net=host --entrypoint /bin/sh "$SCOPE_IMAGE" -c hostname) - HOST_SUFFIX=" of host $DOCKER_HOSTNAME" + DOCKER_HOSTNAME=$(docker run --rm $USERNS_HOST --net=host --entrypoint /bin/sh "$SCOPE_IMAGE" -c hostname) + HOST_SUFFIX=" of host $DOCKER_HOSTNAME" fi echo "Weave Scope is listening at the following URL(s)${HOST_SUFFIX}:" >&2 for ip in "$@"; do @@ -224,14 +224,14 @@ run_in_scope_container() { # Wait for the scope app to start listening on localhost:4040 wait_for_http() { for seconds in $(seq 5); do - if run_in_scope_container "curl -m 1 -s localhost:4040" > /dev/null; then - break; - fi - sleep 1 + if run_in_scope_container "curl -m 1 -s localhost:4040" >/dev/null; then + break + fi + sleep 1 done if [ "$seconds" -eq 5 ]; then - echo "The Scope App is not responding. Consult the container logs for further details." - exit 1 + echo "The Scope App is not responding. Consult the container logs for further details." + exit 1 fi }