diff options
Diffstat (limited to 'support/download/bzr')
-rwxr-xr-x | support/download/bzr | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/support/download/bzr b/support/download/bzr index c56746653..cec9ce8f3 100755 --- a/support/download/bzr +++ b/support/download/bzr @@ -26,4 +26,10 @@ repo="${2}" rev="${3}" basename="${4}" -${BZR} export ${verbose} --root="${basename}/" --format=tgz "${output}" "${repo}" -r "${rev}" +# Caller needs to single-quote its arguments to prevent them from +# being expanded a second time (in case there are spaces in them) +_bzr() { + eval ${BZR} "${@}" +} + +_bzr export ${verbose} --root="'${basename}/'" --format=tgz "'${output}'" "'${repo}'" -r "'${rev}'" |