Merge pull request #1248 from neersighted/ls-definitions

Use ls instead of find to list definitions
This commit is contained in:
Yamashita, Yuu 2018-11-26 09:16:47 +09:00 committed by GitHub
commit ec9fb5492b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1879,7 +1879,7 @@ usage() {
list_definitions() {
{ 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
} | sort_versions | uniq
}