Merge pull request #395 from Gauravtalreja1/fix-394

Fixes #394 - update pyenv virtualenvs to list virtualenvs start with dot prefixes
This commit is contained in:
Anton Petrov
2021-06-17 20:35:52 +03:00
committed by GitHub

View File

@@ -76,6 +76,7 @@ print_version() {
num_versions=$((num_versions + 1))
}
shopt -s dotglob
shopt -s nullglob
for path in "$versions_dir"/*; do
if [ -d "$path" ]; then
@@ -96,6 +97,7 @@ for path in "$versions_dir"/*; do
done
fi
done
shopt -u dotglob
shopt -u nullglob
if [ "$num_versions" -eq 0 ] && [ -n "$include_system" ]; then