aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/build.rb
diff options
context:
space:
mode:
authorMisty De Meo2012-05-19 19:57:56 -0500
committerMisty De Meo2012-06-01 09:24:25 -0500
commit7af4622b0f06d0f505f4e57ea4f65b6e8626e2cc (patch)
treeff6aa9aeac68d7703085c702f404c827757e4b8c /Library/Homebrew/build.rb
parent1a473064679ffb9ef33aacac723cf5865f547e09 (diff)
downloadbrew-7af4622b0f06d0f505f4e57ea4f65b6e8626e2cc.tar.bz2
Replace /usr/bin/ruby with full Framework path
Rationale: some users insist on replacing the /usr/bin/ruby symlink to point to another ruby on their system, which may break homebrew. Use the full Framework path instead, which is less likely to be tampered with. This also reorganizes the brew --config checks to reflect the different path. Fixes Homebrew/homebrew#12009. Closes Homebrew/homebrew#12333. Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
Diffstat (limited to 'Library/Homebrew/build.rb')
-rwxr-xr-xLibrary/Homebrew/build.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/build.rb b/Library/Homebrew/build.rb
index f72633ffa..9ba49ba3f 100755
--- a/Library/Homebrew/build.rb
+++ b/Library/Homebrew/build.rb
@@ -1,4 +1,4 @@
-#!/usr/bin/ruby
+#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
# This script is called by formula_installer as a separate instance.
# Rationale: Formula can use __END__, Formula can change ENV