1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-25 15:20:08 +00:00

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.
This commit is contained in:
Marc Cornellà 2018-08-19 22:33:44 +02:00 committed by GitHub
parent e4d2d27af4
commit fceae90219
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,7 +10,7 @@ done
if [[ $FOUND_JENV -eq 0 ]]; then
if (( $+commands[brew] )) && jenvdir="$(brew --prefix jenv)"; then
FOUND_JENV=1
[[ -d "${jenvdir}/bin" ]] && FOUND_JENV=1
fi
fi