From 97b841c1d5c1f84c6c0e1a8f73a75bb2252a5b3c Mon Sep 17 00:00:00 2001 From: Max Howell Date: Mon, 6 Aug 2012 13:06:16 -0400 Subject: [PATCH] Don't output Ruby warnings We don't want bug reports about this crap, even though the user REALLY should listen to the warning message. What actually happens is they blame us instead. This kind of warning in particular: warning: Insecure world writable dir /usr/local/bin in PATH --- Library/Homebrew/formula_installer.rb | 1 + bin/brew | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb index 419a8855cc..cd32eff9fb 100644 --- a/Library/Homebrew/formula_installer.rb +++ b/Library/Homebrew/formula_installer.rb @@ -196,6 +196,7 @@ class FormulaInstaller read.close exec '/usr/bin/nice', '/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby', + '-W0', '-I', Pathname.new(__FILE__).dirname, '-rbuild', '--', diff --git a/bin/brew b/bin/brew index f0b5487630..ed410fa7ab 100755 --- a/bin/brew +++ b/bin/brew @@ -1,4 +1,4 @@ -#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby +#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -W0 # -*- coding: utf-8 -*- HOMEBREW_BREW_FILE = ENV['HOMEBREW_BREW_FILE'] = File.expand_path(__FILE__)