Unverified Commit fceae902 authored by Marc Cornellà's avatar Marc Cornellà Committed by GitHub
Browse files

jenv: fix brew directory search

`brew --prefix jenv` doesn't ensure jenv is installed so we have to recheck if the
bin folder is still there.
parent e4d2d27a
...@@ -10,7 +10,7 @@ done ...@@ -10,7 +10,7 @@ done
if [[ $FOUND_JENV -eq 0 ]]; then if [[ $FOUND_JENV -eq 0 ]]; then
if (( $+commands[brew] )) && jenvdir="$(brew --prefix jenv)"; then if (( $+commands[brew] )) && jenvdir="$(brew --prefix jenv)"; then
FOUND_JENV=1 [[ -d "${jenvdir}/bin" ]] && FOUND_JENV=1
fi fi
fi fi
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment