summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKyle Shannon <kyle@pobox.com>2018-01-23 17:54:57 -0700
committerBrad Fitzpatrick <bradfitz@golang.org>2018-01-24 04:39:28 +0000
commitc46952172dbf4a134d423134e404bd518568e99a (patch)
treef797d96574f0e17b661380313b21eeabe2642984 /lib
parent7eaa8efbe4bb63ca486aab61f83287dd4bf1d609 (diff)
downloadgo-git-c46952172dbf4a134d423134e404bd518568e99a.tar.gz
lib/time: follow redirects in curl
Starting on or about the 2018c archives, www.iana.org is redirected to data.iana.org. Tell curl to follow the redirect. Updates: #22487 Change-Id: I00acada1a3ba01ef701d6d4ffae6cc2cbb6a068f Reviewed-on: https://go-review.googlesource.com/89375 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'lib')
-rwxr-xr-xlib/time/update.bash4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/time/update.bash b/lib/time/update.bash
index 16552fb6f9..b54fc9e4f6 100755
--- a/lib/time/update.bash
+++ b/lib/time/update.bash
@@ -16,8 +16,8 @@ rm -rf work
mkdir work
cd work
mkdir zoneinfo
-curl -O http://www.iana.org/time-zones/repository/releases/tzcode$CODE.tar.gz
-curl -O http://www.iana.org/time-zones/repository/releases/tzdata$DATA.tar.gz
+curl -L -O http://www.iana.org/time-zones/repository/releases/tzcode$CODE.tar.gz
+curl -L -O http://www.iana.org/time-zones/repository/releases/tzdata$DATA.tar.gz
tar xzf tzcode$CODE.tar.gz
tar xzf tzdata$DATA.tar.gz