From cc35fbd0b85f40722b9bf8de38f4b100dd4f7597 Mon Sep 17 00:00:00 2001 From: Bjorn Neergaard Date: Sun, 25 Nov 2018 12:31:17 -0700 Subject: [PATCH] Use ls instead of find to list definitions --- plugins/python-build/bin/python-build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/python-build/bin/python-build b/plugins/python-build/bin/python-build index 75725312..e780831e 100755 --- a/plugins/python-build/bin/python-build +++ b/plugins/python-build/bin/python-build @@ -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 }