From 5bb80c71265bd5bf6d66216a93fd22ab59a26fa7 Mon Sep 17 00:00:00 2001 From: Bryan Boreham Date: Tue, 23 Dec 2014 14:42:48 +0000 Subject: [PATCH] Quote $@ everywhere, to guard against spaces, globbing, etc. --- weave | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/weave b/weave index 850fed37..92cf0165 100755 --- a/weave +++ b/weave @@ -288,7 +288,7 @@ http_call() { ;; esac shift 1 - http_call_ip $ip $@ + http_call_ip $ip "$@" } http_call_ip() { @@ -501,7 +501,7 @@ case "$COMMAND" in docker_bridge_ip DNS_ARG="--dns $DOCKER_BRIDGE_IP" DNS_SEARCH_ARG="--dns-search=." - for arg in $@; do + for arg in "$@"; do case $arg in --dns-search=*) DNS_SEARCH_ARG=""