From: Mike Nolta Date: Fri, 10 Jul 2020 20:05:41 +0000 (-0600) Subject: This is a harmless bug, as the script still works, but curl's '-O' option isn't the... X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5235f61785017f0c398c2916824bc021bbefcdf8;p=thirdparty%2Fgcc.git This is a harmless bug, as the script still works, but curl's '-O' option isn't the same as wget's. contrib/ChangeLog: * download_prerequisites: Don't pass wget options to curl. --- diff --git a/contrib/download_prerequisites b/contrib/download_prerequisites index da19913f9abb..7d0c4b5ea8dc 100755 --- a/contrib/download_prerequisites +++ b/contrib/download_prerequisites @@ -222,7 +222,7 @@ for ar in $(echo_archives) do if [ ${force} -gt 0 ]; then rm -f "${directory}/${ar}"; fi [ -e "${directory}/${ar}" ] \ - || ${fetch} --no-verbose -O "${directory}/${ar}" "${base_url}${ar}" \ + || ( cd "${directory}" && ${fetch} --no-verbose "${base_url}${ar}" ) \ || die "Cannot download ${ar} from ${base_url}" done unset ar