summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorDave Hibberd <d@vehibberd.com>2023-10-28 15:35:39 +0100
committerDave Hibberd <d@vehibberd.com>2023-10-28 15:35:39 +0100
commitef01e0621b557f99f653415fdff3cd1957e4e3db (patch)
treebb4c5abde884e0c9e381ac2481cf492dc7bc20c2 /tools
parentea27c46f7e327039ebb23a7a9ff9e750bae0d01c (diff)
parentaed54358fee5927f9b4913566d84b92255e08e12 (diff)
Update upstream source from tag 'upstream/20231027'
Update to upstream version '20231027' with Debian dir 856848e71a599f8d106383a457e15fd8d7c0d3e2
Diffstat (limited to 'tools')
-rwxr-xr-xtools/check_commit.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/check_commit.sh b/tools/check_commit.sh
index c92c2b0..6158a47 100755
--- a/tools/check_commit.sh
+++ b/tools/check_commit.sh
@@ -83,7 +83,10 @@ existing_drivers=$(git ls-tree --name-only $BASE chirp/drivers/)
limit=20
for nf in $added_files; do
for of in $existing_drivers; do
- change=$(wdiff -s $of $nf | grep $of | sed -r 's/.* ([0-9]+)% changed/\1/')
+ change=$(wdiff -s $of $nf | grep -I $of | sed -r 's/.* ([0-9]+)% changed/\1/')
+ if [ ! "$change" ]; then
+ continue
+ fi
if [ "$change" -lt "$limit" ]; then
fail "New file $nf shares at least $((100 - $change))% with $of!"
fi