1
0
mirror of https://github.com/pyenv/pyenv.git synced 2025-11-08 11:33:49 -05:00

Merge pull request #1350 from maxbrunet/feature/versions/dotglob

List versions starting with a dot
This commit is contained in:
Anton Petrov
2021-04-15 21:02:50 +03:00
committed by GitHub
3 changed files with 11 additions and 4 deletions

View File

@@ -5,9 +5,9 @@
# This hooks is intended to skip creating shims for those executables.
conda_exists() {
shopt -s nullglob
shopt -s dotglob nullglob
local condas=($(echo "${PYENV_ROOT}/versions/"*"/bin/conda" "${PYENV_ROOT}/versions/"*"/envs/"*"/bin/conda"))
shopt -u nullglob
shopt -u dotglob nullglob
[ -n "${condas}" ]
}