scripts: Tell curl to follow redirects

This commit is contained in:
James McCoy 2017-06-29 17:44:47 -04:00
parent ddea5038e4
commit 03fc0e3f41
No known key found for this signature in database
GPG Key ID: DFE691AE331BA3DB
1 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@ UNIDIR=${1:-$UNIDIR_DEFAULT}
DOWNLOAD_URL_BASE=${2:-$DOWNLOAD_URL_BASE_DEFAULT}
for filename in $data_files ; do
curl -o "$UNIDIR/$filename" "$DOWNLOAD_URL_BASE/UNIDATA/$filename"
curl -L -o "$UNIDIR/$filename" "$DOWNLOAD_URL_BASE/UNIDATA/$filename"
(
cd "$UNIDIR"
git add $filename
@ -30,7 +30,7 @@ for filename in $data_files ; do
done
for filename in $emoji_files ; do
curl -o "$UNIDIR/$filename" "$DOWNLOAD_URL_BASE/emoji/latest/$filename"
curl -L -o "$UNIDIR/$filename" "$DOWNLOAD_URL_BASE/emoji/latest/$filename"
(
cd "$UNIDIR"
git add $filename