fix find in "files_to_check_code_style.sh" (#23269)

* refactor: not necessary  "if [ -f "$FILE" ]"

* fix: exclude directories

---------

Co-authored-by: Isidro Arias <isidro.arias@wslw.es>
This commit is contained in:
Isidro
2024-06-14 17:41:05 -08:00
committed by GitHub
co-authored by Isidro Arias
parent 8258cd63ba
commit 4fe0bb4762
2 changed files with 14 additions and 16 deletions
+1 -1
View File
@@ -31,4 +31,4 @@ exec find boards msg src platforms test \
-path src/lib/cdrstream/rosidl -prune -o \
-path src/modules/zenoh/zenoh-pico -prune -o \
-path boards/modalai/voxl2/libfc-sensor-api -prune -o \
-type f \( -name "*.c" -o -name "*.h" -o -name "*.cpp" -o -name "*.hpp" \) | grep $PATTERN
\( -type f \( -name "*.c" -o -name "*.h" -o -name "*.cpp" -o -name "*.hpp" \) -print \) | grep $PATTERN