mirror of
https://github.com/pyenv/pyenv-virtualenv.git
synced 2025-11-10 12:33:54 -05:00
Fix broken --skip-aliases
This commit is contained in:
@@ -112,7 +112,7 @@ for path in "$versions_dir"/*; do
|
|||||||
if [ -d "$path" ]; then
|
if [ -d "$path" ]; then
|
||||||
if [ -n "$skip_aliases" ] && [ -L "$path" ]; then
|
if [ -n "$skip_aliases" ] && [ -L "$path" ]; then
|
||||||
target="$(realpath "$path")"
|
target="$(realpath "$path")"
|
||||||
[ "${taget%/*/envs/*}" == "$versions_dir" ] || continue
|
[ "${target%/*/envs/*}" != "$versions_dir" ] || continue
|
||||||
fi
|
fi
|
||||||
virtualenv_prefix="$(pyenv-virtualenv-prefix "${path##*/}" 2>/dev/null || true)"
|
virtualenv_prefix="$(pyenv-virtualenv-prefix "${path##*/}" 2>/dev/null || true)"
|
||||||
if [ -d "${virtualenv_prefix}" ]; then
|
if [ -d "${virtualenv_prefix}" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user