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:
@@ -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}" ]
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user