Skip to content

Commit

Permalink
Merge pull request #395 from Gauravtalreja1/fix-394
Browse files Browse the repository at this point in the history
Fixes #394 - update pyenv virtualenvs to list virtualenvs start with dot prefixes
  • Loading branch information
anton-petrov committed Jun 17, 2021
2 parents 6742d0e + b334dde commit c537bff
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bin/pyenv-virtualenvs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit c537bff

Please sign in to comment.