From d4bf74445ad4b69141e0114bc7e548951edfb3dc Mon Sep 17 00:00:00 2001 From: Joseph Chen Date: Thu, 24 Mar 2022 11:29:38 +0000 Subject: [PATCH] scripts: checkpatch.sh: ignore file without valid path Signed-off-by: Joseph Chen Change-Id: I2ab512962309f1b1f3edcc73158796fcd36cef68 --- scripts/checkpatch.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/checkpatch.sh b/scripts/checkpatch.sh index ff4a3713..c4dc9a2d 100755 --- a/scripts/checkpatch.sh +++ b/scripts/checkpatch.sh @@ -39,9 +39,9 @@ pack_trust_image() do if ! test -s ${ini}; then continue; - fi - - if grep -q '^PATH=img/' ${ini}; then + elif ! grep -q '^TOS/' ${ini}; then + continue; + elif grep -q '^PATH=img/' ${ini}; then continue; fi