util/mirror-tarballs: ensure we use https and enable certificate check. thanks Ivan Babrou for the reminder in #144.

This commit is contained in:
Yichun Zhang (agentzh)
2016-01-23 12:01:41 -08:00
parent da90bd7671
commit 0e31ce1662
2 changed files with 3 additions and 3 deletions

View File

@ -14,7 +14,7 @@ cachefile=$work/$outfile
if [ -s $cachefile ]; then
cp $work/$outfile $outfile || exit 1
else
wget --no-check-certificate $1 -O $3 || exit 1
wget $1 -O $3 || exit 1
if [ $? == 0 ]; then
cp $3 $work/ || exit 1
fi