From 2a99a2a597106cd7347ccb8e5984881419a20efb Mon Sep 17 00:00:00 2001 From: Bryan Boreham Date: Mon, 19 Oct 2015 13:49:42 +0000 Subject: [PATCH] Don't fail if the arg we're looking for isn't there --- weave | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/weave b/weave index 231a4d33..110bc01d 100755 --- a/weave +++ b/weave @@ -1477,8 +1477,8 @@ launch_router() { # Recreate the parameter values that are set when the router is first launched fetch_router_args() { CONTAINER_ARGS=$(docker inspect -f '{{.Args}}' $CONTAINER_NAME) - IPRANGE=$(echo $CONTAINER_ARGS | grep -o -e '-ipalloc-range [^ ]*') - NO_DNS_OPT=$(echo $CONTAINER_ARGS | grep -o -e '--no-dns') + IPRANGE=$(echo $CONTAINER_ARGS | grep -o -e '-ipalloc-range [^ ]*') || true + NO_DNS_OPT=$(echo $CONTAINER_ARGS | grep -o -e '--no-dns') || true } attach_router() {