mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-28 21:12:29 -05:00
http_get_aria2c
should return proper value on aria2c
failures
This commit is contained in:
parent
42cffbc82d
commit
4d64f84a25
1 changed files with 5 additions and 2 deletions
|
@ -341,8 +341,11 @@ http_head_aria2c() {
|
||||||
|
|
||||||
http_get_aria2c() {
|
http_get_aria2c() {
|
||||||
local out="${2:-$(mktemp "out.XXXXXX")}"
|
local out="${2:-$(mktemp "out.XXXXXX")}"
|
||||||
aria2c --allow-overwrite=true -o "${out}" ${ARIA2_OPTS} "$1" >&4
|
if aria2c --allow-overwrite=true -o "${out}" ${ARIA2_OPTS} "$1" >&4; then
|
||||||
[ -n "$2" ] || cat "${out}"
|
[ -n "$2" ] || cat "${out}"
|
||||||
|
else
|
||||||
|
false
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
http_head_curl() {
|
http_head_curl() {
|
||||||
|
|
Loading…
Reference in a new issue