mirror of
https://github.com/pyenv/pyenv.git
synced 2024-12-22 15:03:41 +00:00
`aria2c` doesn't support writing content to stdout. As a workaround, this patch will use temporary file then write content on stdout once finished downloading.
This commit is contained in:
parent
03f8029c41
commit
c8c40cff21
1 changed files with 3 additions and 1 deletions
|
@ -340,7 +340,9 @@ http_head_aria2c() {
|
|||
}
|
||||
|
||||
http_get_aria2c() {
|
||||
aria2c -o "${2:--}" ${ARIA2_OPTS} "$1"
|
||||
local out="${2:-$(mktemp "out.XXXXXX")}"
|
||||
aria2c --allow-overwrite=true -o "${out}" ${ARIA2_OPTS} "$1" >&4
|
||||
[ -n "$2" ] || cat "${out}"
|
||||
}
|
||||
|
||||
http_head_curl() {
|
||||
|
|
Loading…
Reference in a new issue