Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fall back to wget #1346

Closed
wants to merge 1 commit into from
Closed

Fall back to wget #1346

wants to merge 1 commit into from

Conversation

kraai
Copy link
Contributor

@kraai kraai commented Jan 27, 2018

If curl is not available, fall back to using wget. This can be useful on systems where curl isn't installed by default but wget is (e.g., Debian 9).

If curl is not available, fall back to using wget.  This can be useful
on systems where curl isn't installed by default but wget is (e.g.,
Debian 9).
@@ -100,7 +107,10 @@ main() {
fi

ensure mkdir -p "$_dir"
ensure curl -sSfL "$_url" -o "$_file"
case $downloader in
curl) ensure curl -sSfL "$_url" -o "$_file";;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I actually prefer the approach taken here :
#1268
which doesn't require to know about curl/wget in several part of the code

@t-botz
Copy link
Contributor

t-botz commented Mar 29, 2018

@nrc duplicate of #1373
please close

@nrc nrc closed this Mar 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants