summaryrefslogtreecommitdiff
path: root/support/download/cp
diff options
context:
space:
mode:
Diffstat (limited to 'support/download/cp')
-rwxr-xr-xsupport/download/cp8
1 files changed, 7 insertions, 1 deletions
diff --git a/support/download/cp b/support/download/cp
index 6e29eef1e..09ce3d110 100755
--- a/support/download/cp
+++ b/support/download/cp
@@ -28,4 +28,10 @@ shift $((OPTIND-1))
output="${1}"
source="${2}"
-${LOCALFILES} ${verbose} "${source}" "${output}"
+# Caller needs to single-quote its arguments to prevent them from
+# being expanded a second time (in case there are spaces in them)
+_localfiles() {
+ eval ${LOCALFILES} "${@}"
+}
+
+_localfiles ${verbose} "'${source}'" "'${output}'"