don't put blank lines around sub-status
not what I had in mind, and it breaks the tests
This commit is contained in:
1 parent
86b7e4a6db
commit
4ecaa0f508
1 file changed
+5
-5
@@ -1324,21 +1324,21 @@ case "$COMMAND" in
|
|||||||
;;
|
;;
|
||||||
status)
|
status)
|
||||||
res=0
|
res=0
|
||||||
OMIT_PROXY=
|
SUB_STATUS=
|
||||||
STATUS_URL="/status"
|
STATUS_URL="/status"
|
||||||
while [ $# -gt 0 ] ; do
|
while [ $# -gt 0 ] ; do
|
||||||
OMIT_PROXY=1
|
SUB_STATUS=1
|
||||||
STATUS_URL="$STATUS_URL/$1"
|
STATUS_URL="$STATUS_URL/$1"
|
||||||
shift
|
shift
|
||||||
done
|
done
|
||||||
echo
|
[ -n "$SUB_STATUS" ] || echo
|
||||||
call_weave GET $STATUS_URL || res=1
|
call_weave GET $STATUS_URL || res=1
|
||||||
if [ -z "$OMIT_PROXY" ] && check_running $PROXY_CONTAINER_NAME 2>/dev/null ; then
|
if [ -z "$SUB_STATUS" ] && check_running $PROXY_CONTAINER_NAME 2>/dev/null ; then
|
||||||
echo
|
echo
|
||||||
echo " Service: proxy"
|
echo " Service: proxy"
|
||||||
echo " Address: $(proxy_addr)"
|
echo " Address: $(proxy_addr)"
|
||||||
fi
|
fi
|
||||||
echo
|
[ -n "$SUB_STATUS" ] || echo
|
||||||
[ $res -eq 0 ]
|
[ $res -eq 0 ]
|
||||||
;;
|
;;
|
||||||
report)
|
report)
|
||||||
|
|||||||
Reference in new issue
Block a user