diff options
Diffstat (limited to 'support/download/cvs')
| -rwxr-xr-x | support/download/cvs | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/support/download/cvs b/support/download/cvs index bfac73b1f1..e1d5035c11 100755 --- a/support/download/cvs +++ b/support/download/cvs @@ -26,6 +26,12 @@ rev="${3}" rawname="${4}" basename="${5}" +# Caller needs to single-quote its arguments to prevent them from +# being expanded a second time (in case there are spaces in them) +_cvs() { + eval ${CVS} "${@}" +} + if [[ ${rev} =~ ^[0-9] ]]; then # Date, because a tag or a branch cannot begin with a number select="-D" @@ -35,7 +41,7 @@ else fi export TZ=UTC -${CVS} ${verbose} -z3 -d":pserver:anonymous@${repo}" \ - co -d "${basename}" ${select} "${rev}" -P "${rawname}" +_cvs ${verbose} -z3 -d"':pserver:anonymous@${repo}'" \ + co -d "'${basename}'" ${select} "'${rev}'" -P "'${rawname}'" tar czf "${output}" "${basename}" |

