mirror of
https://github.com/pyenv/pyenv-virtualenv.git
synced 2026-09-10 07:16:18 -04:00
Fix #394 - update pyenv virtualenvs command to list virtualenvs starting with dot prefixes
This commit is contained in:
parent
6742d0ef10
commit
b334dde5ef
|
|
@ -76,6 +76,7 @@ print_version() {
|
||||||
num_versions=$((num_versions + 1))
|
num_versions=$((num_versions + 1))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
shopt -s dotglob
|
||||||
shopt -s nullglob
|
shopt -s nullglob
|
||||||
for path in "$versions_dir"/*; do
|
for path in "$versions_dir"/*; do
|
||||||
if [ -d "$path" ]; then
|
if [ -d "$path" ]; then
|
||||||
|
|
@ -96,6 +97,7 @@ for path in "$versions_dir"/*; do
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
shopt -u dotglob
|
||||||
shopt -u nullglob
|
shopt -u nullglob
|
||||||
|
|
||||||
if [ "$num_versions" -eq 0 ] && [ -n "$include_system" ]; then
|
if [ "$num_versions" -eq 0 ] && [ -n "$include_system" ]; then
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue