Skip virtualenv aliases as well (yyuu/pyenv-virtualenv#126)

This commit is contained in:
Yamashita, Yuu 2015-12-02 09:52:33 +00:00
parent ebd6c1aee3
commit 96bfa1532d

View file

@ -111,6 +111,7 @@ for path in "$versions_dir"/*; do
if [ -n "$skip_aliases" ] && [ -L "$path" ]; then if [ -n "$skip_aliases" ] && [ -L "$path" ]; then
target="$(realpath "$path")" target="$(realpath "$path")"
[ "${target%/*}" != "$versions_dir" ] || continue [ "${target%/*}" != "$versions_dir" ] || continue
[ "${target%/*/envs/*}" != "$versions_dir" ] || continue
fi fi
print_version "${path##*/}" print_version "${path##*/}"
# virtual environments created by anaconda/miniconda # virtual environments created by anaconda/miniconda