mirror of
https://github.com/rbenv/ruby-build.git
synced 2025-09-02 23:31:34 +02:00
Fail on curl download errors
This commit is contained in:
parent
093e3903ca
commit
a2e94128c3
1 changed files with 1 additions and 1 deletions
|
@ -129,7 +129,7 @@ make_package() {
|
||||||
|
|
||||||
fetch_url() {
|
fetch_url() {
|
||||||
if type curl &>/dev/null; then
|
if type curl &>/dev/null; then
|
||||||
curl "$@"
|
curl -f "$@"
|
||||||
elif type wget &>/dev/null; then
|
elif type wget &>/dev/null; then
|
||||||
wget -O- "$@"
|
wget -O- "$@"
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue