oops
/usr/local/bin/weave: 1172: [: true false: unexpected operator This got broken in #1941.
This commit is contained in:
1 parent
5707581ba3
commit
7ea3299dc6
1 file changed
+1
-1
@@ -1179,7 +1179,7 @@ check_running() {
|
|||||||
if ! STATUS=$(docker inspect --format='{{.State.Running}} {{.State.Restarting}}' $1 2>/dev/null) ; then
|
if ! STATUS=$(docker inspect --format='{{.State.Running}} {{.State.Restarting}}' $1 2>/dev/null) ; then
|
||||||
echo "$1 container is not present. Have you launched it?" >&2
|
echo "$1 container is not present. Have you launched it?" >&2
|
||||||
return 1
|
return 1
|
||||||
elif [ "$STATUS" == "true true" ] ; then
|
elif [ "$STATUS" = "true true" ] ; then
|
||||||
echo "$1 container is restarting." >&2
|
echo "$1 container is restarting." >&2
|
||||||
return 2
|
return 2
|
||||||
elif [ "$STATUS" != "true false" ] ; then
|
elif [ "$STATUS" != "true false" ] ; then
|
||||||
|
|||||||
Reference in new issue
Block a user