diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2015-05-02 11:55:50 +1000 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2015-05-07 11:04:02 +1000 |
commit | 0896c29c61b382169392d7aca3368e019f394e48 (patch) | |
tree | 6c48339ea79ae33bab91a5a7fc9a046db926495b | |
parent | e02a2da278f85508971a8e8ea938dadba324cdd9 (diff) | |
download | scala-0896c29c61b382169392d7aca3368e019f394e48.tar.gz scala-0896c29c61b382169392d7aca3368e019f394e48.tar.bz2 scala-0896c29c61b382169392d7aca3368e019f394e48.zip |
[backport] Follow HTTP redirects when downloading bootstrap binaries
After a recent change to the repository that hosts these JARs,
we now get a HTTP redirect to the new destination. We need to
explicitly instruct curl to follow this.
(cherry picked from commit c75547f342e7795e9cd7d23d5d6c4c44c179d21b)
-rwxr-xr-x | tools/binary-repo-lib.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/binary-repo-lib.sh b/tools/binary-repo-lib.sh index 92ef3a0329..2f5d481e39 100755 --- a/tools/binary-repo-lib.sh +++ b/tools/binary-repo-lib.sh @@ -55,7 +55,7 @@ curlDownload() { if [[ "$OSTYPE" == *Cygwin* || "$OSTYPE" == *cygwin* ]]; then jar=$(cygpath -m $1) fi - http_code=$(curl --write-out '%{http_code}' --silent --fail --output "$jar" "$url") + http_code=$(curl --write-out '%{http_code}' --silent --fail -L --output "$jar" "$url") if (( $? != 0 )); then echo "Error downloading $jar: response code: $http_code" echo "$url" |