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
This commit is contained in:
Max Howell 2012-08-06 13:06:16 -04:00
parent a9f246eaad
commit 97b841c1d5
2 changed files with 2 additions and 1 deletions

View File

@ -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',
'--',

View File

@ -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__)