Adds option to prevent curl download error [ref https://curl.se/docs/manpage.html\#-L]

This commit is contained in:
Rodrigo Guimarães 2021-02-04 16:12:04 -03:00
parent d8a7bcd43e
commit a3e844cda6
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ SKIP_DB_CREATE=${7-false}
download() {
if [ `which curl` ]; then
curl -s "$1" > "$2";
curl -s -L "$1" > "$2";
elif [ `which wget` ]; then
wget -nv -O "$2" "$1"
fi