aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Howell2012-08-06 13:06:16 -0400
committerMax Howell2012-08-06 13:06:36 -0400
commit84bf873aae08d72c0da9f49e03ff74202838e356 (patch)
tree6c6f45ede4a34b12dd3575e3458e42f32a62f4db
parent9957939cd71b890c45c1cdea71fb1ced33f13308 (diff)
downloadhomebrew-84bf873aae08d72c0da9f49e03ff74202838e356.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__)