Reduce use of grep

because find can return us the same 240 wanted files.
This commit is contained in:
Bernhard M. Wiedemann 2023-10-19 17:16:31 +02:00 committed by Adam Honse
parent 9ac44192bc
commit cd4004dce2

View file

@ -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"