Commit 68b03686 authored by Vitaly Lipatov's avatar Vitaly Lipatov

eget: add wget fallback for axel stdout output

parent 6ea67f0b
...@@ -1496,14 +1496,13 @@ __axel() ...@@ -1496,14 +1496,13 @@ __axel()
# put remote content to stdout # put remote content to stdout
url_scat() url_scat()
{ {
# TODO # axel doesn't support stdout output, fallback to wget
fatal "Improve me (via temp. file?)"
local URL="$1" local URL="$1"
download_with_mirroring __axel -o - "$URL" && return download_with_mirroring __wget "$URL" -O- && return
local RES=$? local RES=$?
[ -n "$quiet" ] || return $RES [ -n "$quiet" ] || return $RES
unset_quiet unset_quiet
download_with_mirroring __axel -o - "$URL" download_with_mirroring __wget "$URL" -O-
} }
# download to default name of to $2 # download to default name of to $2
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment