Reduce use of grep
because find can return us the same 240 wanted files.
This commit is contained in:
parent
9ac44192bc
commit
cd4004dce2
1 changed files with 1 additions and 1 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue