Skip to content

Commit 3e18acf

Browse files
authored
Merge pull request torvalds#256 from lkl/fix-checkpatch
lkl tools: fix checkpath.sh error when running directly on top of the…
2 parents 9b3d507 + fc2a825 commit 3e18acf

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)