added WGET_OPTIONS to apt-download

This commit is contained in:
bigeagle 2016-06-08 17:24:02 +08:00
parent ddfb363e34
commit 2416f3f991

View File

@ -8,7 +8,7 @@ function check-and-download() {
remote_file=$1 remote_file=$1
local_file=$2 local_file=$2
echo "downloading ${remote_file}" echo "downloading ${remote_file}"
timeout -s INT 300 wget -q -N -O ${local_file} ${remote_file} || { timeout -s INT 300 wget -q -N -O ${WGET_OPTIONS} ${local_file} ${remote_file} || {
rm ${local_file} rm ${local_file}
return 1 return 1
} }