brew: ensure full path for HOMEBREW_RUBY_PATH

This commit is contained in:
Xu Cheng 2015-11-20 19:52:19 +08:00
parent f5104a7946
commit aeb8aad1e0

View File

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