summaryrefslogtreecommitdiff
path: root/support/download/wget
diff options
context:
space:
mode:
Diffstat (limited to 'support/download/wget')
-rwxr-xr-xsupport/download/wget8
1 files changed, 7 insertions, 1 deletions
diff --git a/support/download/wget b/support/download/wget
index 885bcf14f..0fc7ffa94 100755
--- a/support/download/wget
+++ b/support/download/wget
@@ -23,4 +23,10 @@ shift $((OPTIND-1))
output="${1}"
url="${2}"
-${WGET} ${verbose} -O "${output}" "${url}"
+# Caller needs to single-quote its arguments to prevent them from
+# being expanded a second time (in case there are spaces in them)
+_wget() {
+ eval ${WGET} "${@}"
+}
+
+_wget ${verbose} -O "'${output}'" "'${url}'"