Skip to content

Commit

Permalink
Merge pull request #5 from jcormier/tzdata_http
Browse files Browse the repository at this point in the history
Update tzdata-updater.sh to use http instead of https
  • Loading branch information
meefik committed Sep 25, 2019
2 parents 183b7cd + 9c63636 commit 7ec6253
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/main/assets/all/bin/tzdata-updater.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ tz_version()
{
if [ -z "${TZ_VERSION}" ]; then
printf "Getting latest version ... "
TZ_VERSION=$(wget -q -O - "https://data.iana.org/time-zones/" | grep -o '[0-9]\{4\}[a-z]\{1\}' | sort -u | tail -n1)
TZ_VERSION=$(wget -q -O - "http://data.iana.org/time-zones/" | grep -o '[0-9]\{4\}[a-z]\{1\}' | sort -u | tail -n1)
[ -n "${TZ_VERSION}" ] && printf "done\n" || { printf "fail\n"; return 1; }
fi
printf "Found tzdata version: ${TZ_VERSION}\n"
Expand All @@ -49,7 +49,7 @@ download()
{
printf "Downloading tzdata${TZ_VERSION}.tar.gz ... "
[ -e "${TZ_EXTRACTED}" ] || mkdir -p ${TZ_EXTRACTED}
wget -q -O - "https://data.iana.org/time-zones/releases/tzdata${TZ_VERSION}.tar.gz" | tar xz -C ${TZ_EXTRACTED}
wget -q -O - "http://data.iana.org/time-zones/releases/tzdata${TZ_VERSION}.tar.gz" | tar xz -C ${TZ_EXTRACTED}
[ $? -eq 0 ] && printf "done\n" || { printf "fail\n"; return 1; }
return 0
}
Expand Down

0 comments on commit 7ec6253

Please sign in to comment.