mirror of
https://github.com/pyenv/pyenv.git
synced 2026-09-09 23:26:16 -04:00
rehash: simplify source.bash pipeline (#3419)
Same cleanup applied to conda.bash in #3151.
This commit is contained in:
parent
8037f22665
commit
e985ffab82
|
|
@ -2,7 +2,7 @@ PROTOTYPE_SOURCE_SHIM_PATH="${SHIM_PATH}/.pyenv-source-shim"
|
|||
|
||||
shims=()
|
||||
shopt -s nullglob
|
||||
for shim in $(cat "${BASH_SOURCE%/*}/source.d/"*".list" | sort | uniq | sed -e 's/#.*$//' | sed -e '/^[[:space:]]*$/d'); do
|
||||
for shim in $(sort -u "${BASH_SOURCE%/*}/source.d/"*".list" | sed -e 's/#.*$//' -e '/^[[:space:]]*$/d'); do
|
||||
if [ -n "${shim##*/}" ]; then
|
||||
shims[${#shims[*]}]="${shim})return 0;;"
|
||||
fi
|
||||
|
|
|
|||
Loading…
Reference in a new issue