Skip to content

Commit fc2a825

Browse files
committed
lkl tools: fix checkpath.sh error when running directly on top of the master branch
Signed-off-by: Octavian Purdila <[email protected]>
1 parent 9b3d507 commit fc2a825

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tools/lkl/scripts/checkpatch.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ for c in `git log --no-merges --pretty=format:%h HEAD ^$origin_master ^$tag`; do
2525
git format-patch -1 -o $tmp $c
2626
done
2727

28+
if [ -z "$c" ]; then
29+
rmdir $tmp
30+
exit 0
31+
fi
32+
2833
./scripts/checkpatch.pl --ignore FILE_PATH_CHANGES $tmp/*.patch
2934
rm $tmp/*.patch
3035

0 commit comments

Comments
 (0)