From 48b54ef72256cf21a80d431030fc950d1f7a1d90 Mon Sep 17 00:00:00 2001 From: Matthias Radestock Date: Tue, 2 Jun 2015 17:25:56 +0100 Subject: [PATCH] cosmetic: consistency --- weave | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/weave b/weave index ef82e1a7..728e06f0 100755 --- a/weave +++ b/weave @@ -529,13 +529,13 @@ container_ip() { # it's not running or doesn't exist, print an error to stderr and # return with an indicative non-zero exit code. container_id() { - if ! STATUS=$(docker inspect --format='{{.State.Running}} {{.Id}}' $1 2>/dev/null) ; then + if ! status=$(docker inspect --format='{{.State.Running}} {{.Id}}' $1 2>/dev/null) ; then echo "Error: No such container: $1" >&2 return 1 fi - case "$STATUS" in + case "$status" in true*) - echo "${STATUS#true }" + echo "${status#true }" ;; *) echo "$1 container is not running." >&2