From 4ebb13fa94962eb8a183d8ef1878f21b14d82124 Mon Sep 17 00:00:00 2001 From: Bryan Boreham Date: Thu, 17 Dec 2015 16:23:42 +0000 Subject: [PATCH] Fix indentation of netcheck if-statement --- weave | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/weave b/weave index c3ae832f..21950e60 100755 --- a/weave +++ b/weave @@ -1604,14 +1604,14 @@ launch_router() { if [ -z "$IPRANGE_SPECIFIED" ] ; then IPRANGE="10.32.0.0/12" if command_exists netcheck && ! netcheck --ignore-iface=$BRIDGE $IPRANGE ; then - echo "ERROR: Default --ipalloc-range $IPRANGE overlaps with existing route on host." >&2 - echo "You must pick another range and set it on all hosts." >&2 + echo "ERROR: Default --ipalloc-range $IPRANGE overlaps with existing route on host." >&2 + echo "You must pick another range and set it on all hosts." >&2 exit 1 - fi - else - if [ -n "$IPRANGE" ] && command_exists netcheck && ! netcheck --ignore-iface=$BRIDGE $IPRANGE ; then - echo "WARNING: Specified --ipalloc-range $IPRANGE overlaps with existing route on host." >&2 - echo "Unless this is deliberate, you must pick another range and set it on all hosts." >&2 + fi + else + if [ -n "$IPRANGE" ] && command_exists netcheck && ! netcheck --ignore-iface=$BRIDGE $IPRANGE ; then + echo "WARNING: Specified --ipalloc-range $IPRANGE overlaps with existing route on host." >&2 + echo "Unless this is deliberate, you must pick another range and set it on all hosts." >&2 fi fi