ci: fix rom header checker to validate *rom* on word boundaries

This commit is contained in:
David Cermak
2020-03-19 11:47:37 +01:00
committed by bot
parent a5a750ba48
commit 39011c055a

View File

@@ -3,7 +3,7 @@
# Examples shouldn't include rom headers directly # Examples shouldn't include rom headers directly
output=$(find ${IDF_PATH}/examples -name "*.[chS]" -o -name "*.cpp" -not -path "**/build/**") output=$(find ${IDF_PATH}/examples -name "*.[chS]" -o -name "*.cpp" -not -path "**/build/**")
files=$(grep ".*include.*rom.*h" ${output} | cut -d ":" -f 1) files=$(egrep ".*include.*\<rom\>.*h" ${output} | cut -d ":" -f 1)
found_rom=0 found_rom=0
for file in ${files} for file in ${files}
do do