From cd4004dce2b49fa87cec0913ce6ed90dc5d41d14 Mon Sep 17 00:00:00 2001 From: "Bernhard M. Wiedemann" Date: Thu, 19 Oct 2023 17:16:31 +0200 Subject: [PATCH] Reduce use of grep because find can return us the same 240 wanted files. --- scripts/build-udev-rules.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/build-udev-rules.sh b/scripts/build-udev-rules.sh index a30dc8e5..f87f5664 100755 --- a/scripts/build-udev-rules.sh +++ b/scripts/build-udev-rules.sh @@ -60,7 +60,7 @@ DUMMY_LIST=$( grep -hR -e DUMMY_DEVICE_DETECTOR ${CONTROLLER_PATH} | cut -d '(' # Create a list of RGBController.cpp classes including path # #-----------------------------------------------------------------------------# echo -e "Creating file list to parse metadata" -FILE_LIST=$(find ${CONTROLLER_PATH} | sort | grep RGBController_ | grep cpp) +FILE_LIST=$(find ${CONTROLLER_PATH} -name "RGBController_*.cpp" | sort) #Check the output of the file_list # echo -e "$FILE_LIST" >> "file_list.txt"