Fix #394 - update pyenv virtualenvs command to list virtualenvs starting with dot prefixes

This commit is contained in:
Gaurav Talreja
2021-06-16 15:20:14 +05:30
parent 6742d0ef10
commit b334dde5ef

View File

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