mirror of
https://github.com/pyenv/pyenv.git
synced 2025-11-10 20:43:48 -05:00
Merge pull request #620 from yyuu/workaround-aria2c-stdout
Write remote content on stdout with `aria2c`
This commit is contained in:
@@ -340,7 +340,12 @@ http_head_aria2c() {
|
||||
}
|
||||
|
||||
http_get_aria2c() {
|
||||
aria2c -o "${2:--}" ${ARIA2_OPTS} "$1"
|
||||
local out="${2:-$(mktemp "out.XXXXXX")}"
|
||||
if aria2c --allow-overwrite=true -o "${out}" ${ARIA2_OPTS} "$1" >&4; then
|
||||
[ -n "$2" ] || cat "${out}"
|
||||
else
|
||||
false
|
||||
fi
|
||||
}
|
||||
|
||||
http_head_curl() {
|
||||
|
||||
Reference in New Issue
Block a user