scripts: checkpatch.sh: ignore file without valid path

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I2ab512962309f1b1f3edcc73158796fcd36cef68
This commit is contained in:
Joseph Chen
2022-03-24 11:29:38 +00:00
parent 7b17781257
commit d4bf74445a

View File

@@ -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