aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Howell2012-08-06 13:06:16 -0400
committerMax Howell2012-08-06 13:06:36 -0400
commit97b841c1d5c1f84c6c0e1a8f73a75bb2252a5b3c (patch)
treebb3527c335aac8e42e500c237f6789076b5c4a64
parenta9f246eaad9b62b1beddb0f7380d7d52d7097a72 (diff)
downloadbrew-97b841c1d5c1f84c6c0e1a8f73a75bb2252a5b3c.tar.bz2
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
-rw-r--r--Library/Homebrew/formula_installer.rb1
-rwxr-xr-xbin/brew2
2 files changed, 2 insertions, 1 deletions
diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb
index 419a8855c..cd32eff9f 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 f0b548763..ed410fa7a 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__)