/usr/local/bin/weave: 1172: [: true false: unexpected operator

This got broken in #1941.
This commit is contained in:
Matthias Radestock committed 2016-02-09 22:05:11 +00:00
1 parent 5707581ba3
commit 7ea3299dc6
1 file changed
+1 -1
+1 -1
View File
@@ -1179,7 +1179,7 @@ check_running() {
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
return 1
elif [ "$STATUS" == "true true" ] ; then
elif [ "$STATUS" = "true true" ] ; then
echo "$1 container is restarting." >&2
return 2
elif [ "$STATUS" != "true false" ] ; then