mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-21 20:47:00 -05:00
Use ls instead of find to list definitions
This commit is contained in:
parent
dd523b706d
commit
cc35fbd0b8
1 changed files with 1 additions and 1 deletions
|
@ -1879,7 +1879,7 @@ usage() {
|
||||||
|
|
||||||
list_definitions() {
|
list_definitions() {
|
||||||
{ for DEFINITION_DIR in "${PYTHON_BUILD_DEFINITIONS[@]}"; do
|
{ for DEFINITION_DIR in "${PYTHON_BUILD_DEFINITIONS[@]}"; do
|
||||||
[ -d "$DEFINITION_DIR" ] && find "$DEFINITION_DIR" -maxdepth 1 -type f -print0 | xargs -0 -n 1 basename 2>/dev/null
|
[ -d "$DEFINITION_DIR" ] && ls "$DEFINITION_DIR" | grep -xv patches
|
||||||
done
|
done
|
||||||
} | sort_versions | uniq
|
} | sort_versions | uniq
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue