Fix broken --skip-aliases

This commit is contained in:
Yamashita, Yuu
2015-11-25 12:04:48 +00:00
parent f92a3a26c5
commit 5e92253943

View File

@@ -112,7 +112,7 @@ for path in "$versions_dir"/*; do
if [ -d "$path" ]; then
if [ -n "$skip_aliases" ] && [ -L "$path" ]; then
target="$(realpath "$path")"
[ "${taget%/*/envs/*}" == "$versions_dir" ] || continue
[ "${target%/*/envs/*}" != "$versions_dir" ] || continue
fi
virtualenv_prefix="$(pyenv-virtualenv-prefix "${path##*/}" 2>/dev/null || true)"
if [ -d "${virtualenv_prefix}" ]; then