do not initialize RBENV_ROOT

so that the loop can do the detection
This commit is contained in:
Thomas Limp 2014-03-21 11:09:31 +01:00
commit 46e2b19f02

View file

@ -10,9 +10,6 @@ FOUND_RBENV=0
rbenvdirs=("$HOME/.rbenv" "/usr/local/rbenv" "/opt/rbenv")
if _homebrew-installed && _rbenv-from-homebrew-installed ; then
rbenvdirs=($(brew --prefix rbenv) "${rbenvdirs[@]}")
if [[ $RBENV_ROOT = '' ]]; then
RBENV_ROOT="$HOME/.rbenv"
fi
fi
for rbenvdir in "${rbenvdirs[@]}" ; do