summaryrefslogtreecommitdiffhomepage
path: root/build.subr
diff options
context:
space:
mode:
Diffstat (limited to 'build.subr')
-rw-r--r--build.subr3
1 files changed, 2 insertions, 1 deletions
diff --git a/build.subr b/build.subr
index 2308a9f7..7317893e 100644
--- a/build.subr
+++ b/build.subr
@@ -174,10 +174,11 @@ clear_env_with_except() {
unset _cewe_vfilter _cewe_vspec;
};
+# N.B. URLs ($1) may contain `?' or '&' characters.
fetch() {
[ ${ARG_NO_DOWNLOAD:-0} -eq 1 ] && return;
rm_if_exists $(get_basename ${1});
- wget ${WGET_ARGS} ${1};
+ wget ${WGET_ARGS} "${1}";
if [ ${#} -eq 2 ]; then
set -- $(get_basename ${1}) "$(compare_hash $(get_basename ${1}) ${2})" ${2};
if [ -n "${2}" ]; then