Fix rbenv prefix for system version

Should be `/usr` or `/usr/local`, not `/usr/bin` or `/usr/local/bin`
This commit is contained in:
Sam Stephenson 2012-12-12 21:40:05 -06:00
parent 9289af0132
commit 7fe9231e64

View file

@ -16,7 +16,8 @@ fi
if [ "$RBENV_VERSION" = "system" ]; then
RUBY_PATH="$(rbenv-which ruby)"
echo "${RUBY_PATH%/*}"
RUBY_PATH="${RUBY_PATH%/*}"
echo "${RUBY_PATH%/bin}"
exit
fi