From 328e63828e66a8a93fea0f2986741bfc066f5172 Mon Sep 17 00:00:00 2001 From: Bryan Boreham Date: Thu, 11 Jun 2015 16:36:02 +0100 Subject: [PATCH] Check whether netcheck exists before relying on it --- weave | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weave b/weave index 5a141f31..3e0b691a 100755 --- a/weave +++ b/weave @@ -986,7 +986,7 @@ case "$COMMAND" in eval "set -- $ARGS" if [ -z "$IPRANGE" ] ; then IPRANGE="-iprange 10.128.0.0/9" - if ! netcheck ${IPRANGE#* } ; then + if command_exists netcheck && ! netcheck ${IPRANGE#* } ; then echo "Default" $IPRANGE "overlaps with existing route." >&2 echo "Please pick another range and set it on all hosts." >&2 exit 1