Skip to content

Commit

Permalink
add fetch support to winetricks_dl_url_to_stdout
Browse files Browse the repository at this point in the history
  • Loading branch information
lifanov authored and austin987 committed Feb 21, 2017
1 parent 502e7e0 commit 6734c58
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/winetricks
Expand Up @@ -2702,6 +2702,9 @@ winetricks_dl_url_to_stdout()
"$1" > /dev/null
cat "${stdout_tmpfile}"
rm "${stdout_tmpfile}"
elif [ "${WINETRICKS_DOWNLOADER}" = "fetch" ] ; then
# fetch does not support retry count
$torify fetch -o - -T "${WINETRICKS_DOWNLOADER_TIMEOUT}" "$1" 2>/dev/null
else
w_die "Please install aria2c, curl, or wget"
fi
Expand Down

0 comments on commit 6734c58

Please sign in to comment.