mirror of
https://github.com/apache/nuttx.git
synced 2026-09-27 18:58:27 +08:00
checkpatch.sh:Fix checking for wrong cmake files
patches ending with cmake should be checked. Currently, any non-cmake files containing cmake keywords will be checked. Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
This commit is contained in:
+1
-1
@@ -63,7 +63,7 @@ is_rust_file() {
|
||||
|
||||
is_cmake_file() {
|
||||
file_name=$(basename $@)
|
||||
if [ "$file_name" == "CMakeLists.txt" ] || [[ "$file_name" =~ "cmake" ]]; then
|
||||
if [ "$file_name" == "CMakeLists.txt" ] || [[ "$file_name" =~ \.cmake$ ]]; then
|
||||
echo 1
|
||||
else
|
||||
echo 0
|
||||
|
||||
Reference in New Issue
Block a user