From 0d3e3b8b8e7ef3a6c24d1bfd39532ab5c411ba7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mislav=20Marohni=C4=87?= Date: Mon, 4 Nov 2019 17:11:28 +0100 Subject: [PATCH] Ensure missing curl/wget/aria2c error message is shown on Linux https://travis-ci.org/rbenv/ruby-build/builds/607144159 Ref. #1234 --- bin/ruby-build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/ruby-build b/bin/ruby-build index bcd50caf5e..5fae7d8acf 100755 --- a/bin/ruby-build +++ b/bin/ruby-build @@ -302,7 +302,7 @@ http() { [ -n "$2" ] || return 1 shift 1 - RUBY_BUILD_HTTP_CLIENT="${RUBY_BUILD_HTTP_CLIENT:-$(detect_http_client)}" + RUBY_BUILD_HTTP_CLIENT="${RUBY_BUILD_HTTP_CLIENT:-$(detect_http_client 2>&3)}" [ -n "$RUBY_BUILD_HTTP_CLIENT" ] || return 1 "http_${method}_${RUBY_BUILD_HTTP_CLIENT}" "$@"