[chirp_devel] [PATCH 4 of 4] Fix commit message line lenght test
Marco Filippi IZ3GME
Thu Jan 16 15:24:31 PST 2014
# HG changeset patch
# User Marco Filippi <iz3gme.marco at gmail.com>
# Date 1389912907 -3600
# Node ID b06a05dff6afadda4d6bd353eda7c10f2c71048a
# Parent 2542bd064fff967c696d05ff39397de2592e4786
Fix commit message line lenght test
Do not add a linefeed to line being tested
Noticed at commit time for #1375
diff -r 2542bd064fff -r b06a05dff6af tools/checkpatch.sh
--- a/tools/checkpatch.sh Thu Jan 16 23:45:43 2014 +0100
+++ b/tools/checkpatch.sh Thu Jan 16 23:55:07 2014 +0100
@@ -35,7 +35,7 @@
read line
if [ -z "$line" ]; then
break
- elif [ $(echo "$line" | wc -c) -ge 80 ]; then
+ elif [ $(echo -n "$line" | wc -c) -ge 80 ]; then
return 1
fi
done
More information about the chirp_devel
mailing list