From 68896d14aaededbcf0b61b76b85684fce51bb165 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Sun, 1 Nov 2015 00:08:40 -0700 Subject: [PATCH] download_strategy: silence curl on Travis CI. Use one of the Travis CI default environment variables: http://docs.travis-ci.com/user/environment-variables/#Default-Environment-Variables Closes Homebrew/homebrew#44446. Closes https://github.com/travis-ci/travis-ci/issues/4936. Closes Homebrew/homebrew#45561. Signed-off-by: Mike McQuaid --- Library/Homebrew/utils.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb index 54ed31a384..f50239a14f 100644 --- a/Library/Homebrew/utils.rb +++ b/Library/Homebrew/utils.rb @@ -251,7 +251,7 @@ def curl(*args) args = [flags, HOMEBREW_USER_AGENT, *args] args << "--verbose" if ENV["HOMEBREW_CURL_VERBOSE"] - args << "--silent" unless $stdout.tty? + args << "--silent" if !$stdout.tty? || ENV["TRAVIS"] safe_system curl, *args end