diff options
author | Andrew Robbins <contact@andrewrobbins.info> | 2017-09-20 10:31:50 -0400 |
---|---|---|
committer | Andrew Robbins <contact@andrewrobbins.info> | 2017-09-20 11:01:10 -0400 |
commit | c3b7abbbbcb2b1fa4fa2698e77e9457b7af638a7 (patch) | |
tree | cba73a467f650ed4c81cd464e9204d756171e6d3 /libs | |
parent | c9a97565554a651f291a340415489e2f4ece0b28 (diff) | |
download | librebootfr-c3b7abbbbcb2b1fa4fa2698e77e9457b7af638a7.tar.gz librebootfr-c3b7abbbbcb2b1fa4fa2698e77e9457b7af638a7.zip |
Add support for curl in download_wrapper function
Diffstat (limited to 'libs')
-rwxr-xr-x | libs/common | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/libs/common b/libs/common index 87f2f364..8dff9d18 100755 --- a/libs/common +++ b/libs/common @@ -73,8 +73,6 @@ download_wrapper() { shift local uris=($@) - # TODO: Add support for curl, in addition - # to wget, for compatibility reasons local wget_options=( '--config=/dev/null' '--secure-protocol=PFS' @@ -83,6 +81,16 @@ download_wrapper() { '--' ) + local curl_options=( + '-q' + '--continue-at -' + '--remote-name' + '--retry 20' + '--ssl' + '--tlsv1.2' + '--' + ) + wget "${wget_options[@]}" "${uris[@]}" } |