mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-21 20:47:00 -05:00
Merge pull request #2035 from pyenv/revert-2027-master
Revert "Adapt conda.bash for bash associative array"
This commit is contained in:
commit
4f8b15fecd
1 changed files with 8 additions and 16 deletions
|
@ -34,13 +34,6 @@ make_shims() {
|
||||||
}
|
}
|
||||||
|
|
||||||
deregister_conda_shims() {
|
deregister_conda_shims() {
|
||||||
if [[ -v registered_shims[@] ]]; then # adapted for Bash 4.x's associative array (#1749)
|
|
||||||
for shim in ${!registered_shims[*]}; do
|
|
||||||
if conda_shim "${shim}" 1>&2; then
|
|
||||||
unset registered_shims[${shim}]
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
else
|
|
||||||
local shim
|
local shim
|
||||||
local shims=()
|
local shims=()
|
||||||
for shim in ${registered_shims}; do
|
for shim in ${registered_shims}; do
|
||||||
|
@ -49,7 +42,6 @@ deregister_conda_shims() {
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
registered_shims=" ${shims[@]} "
|
registered_shims=" ${shims[@]} "
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if conda_exists; then
|
if conda_exists; then
|
||||||
|
|
Loading…
Reference in a new issue