浏览代码

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.
Marc Cornellà 6 年之前
父节点
当前提交
fceae90219
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      plugins/jenv/jenv.plugin.zsh

+ 1 - 1
plugins/jenv/jenv.plugin.zsh

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