aboutsummaryrefslogtreecommitdiff
path: root/lib/time/update.bash
diff options
context:
space:
mode:
Diffstat (limited to 'lib/time/update.bash')
-rwxr-xr-xlib/time/update.bash9
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/time/update.bash b/lib/time/update.bash
index b54fc9e4f6..26ad79d52d 100755
--- a/lib/time/update.bash
+++ b/lib/time/update.bash
@@ -5,7 +5,7 @@
# This script rebuilds the time zone files using files
# downloaded from the ICANN/IANA distribution.
-# Consult http://www.iana.org/time-zones for the latest versions.
+# Consult https://www.iana.org/time-zones for the latest versions.
# Versions to use.
CODE=2017c
@@ -16,8 +16,8 @@ rm -rf work
mkdir work
cd work
mkdir zoneinfo
-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
+curl -L -O https://www.iana.org/time-zones/repository/releases/tzcode$CODE.tar.gz
+curl -L -O https://www.iana.org/time-zones/repository/releases/tzdata$DATA.tar.gz
tar xzf tzcode$CODE.tar.gz
tar xzf tzdata$DATA.tar.gz
@@ -42,10 +42,9 @@ zip -0 -r ../../zoneinfo.zip *
cd ../..
echo
-if [ "$1" = "-work" ]; then
+if [ "$1" = "-work" ]; then
echo Left workspace behind in work/.
else
rm -rf work
fi
echo New time zone files in zoneinfo.zip.
-