aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorXu Cheng2015-11-20 19:52:19 +0800
committerXu Cheng2015-11-20 19:52:19 +0800
commitaeb8aad1e046ad63886a77af3c3b234c83fae50c (patch)
treec026bce37870f3373a638f9ceeda4e0bc4657d3e /bin
parentf5104a7946e9b0244b3a42a840fb2ecfacb8da5a (diff)
downloadbrew-aeb8aad1e046ad63886a77af3c3b234c83fae50c.tar.bz2
brew: ensure full path for HOMEBREW_RUBY_PATH
Diffstat (limited to 'bin')
-rwxr-xr-xbin/brew2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/brew b/bin/brew
index 19818e353..56fb445d6 100755
--- a/bin/brew
+++ b/bin/brew
@@ -31,7 +31,7 @@ if [ -z "$HOMEBREW_RUBY_PATH" ]; then
if [ "$BREW_SYSTEM" = "darwin" ]; then
export HOMEBREW_RUBY_PATH="/System/Library/Frameworks/Ruby.framework/Versions/Current/usr/bin/ruby"
else
- export HOMEBREW_RUBY_PATH="ruby"
+ export HOMEBREW_RUBY_PATH="$(which ruby)"
fi
fi