diff options
Diffstat (limited to 'support/download/scp')
-rwxr-xr-x | support/download/scp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/support/download/scp b/support/download/scp index 1a62f30a2..95cf502be 100755 --- a/support/download/scp +++ b/support/download/scp @@ -23,4 +23,10 @@ shift $((OPTIND-1)) output="${1}" url="${2}" -${SCP} ${verbose} "${url}" "${output}" +# Caller needs to single-quote its arguments to prevent them from +# being expanded a second time (in case there are spaces in them) +_scp() { + eval ${SCP} "${@}" +} + +_scp ${verbose} "'${url}'" "'${output}'" |