summaryrefslogtreecommitdiff
path: root/tools/find-double-newline.sh
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2018-05-22 16:07:18 +0200
committerLennart Poettering <lennart@poettering.net>2018-05-22 16:13:45 +0200
commit3dfd31c8d241295032c75a6f9c6df33b165914bd (patch)
treedf3b77995538d5e858a843d4dca2467873382f53 /tools/find-double-newline.sh
parenta5201ed6cea9338ed4da2c0f8442e96083bad2c4 (diff)
downloadsystemd-3dfd31c8d241295032c75a6f9c6df33b165914bd.tar.gz
find-double-newline: look in headers too
Diffstat (limited to 'tools/find-double-newline.sh')
-rwxr-xr-xtools/find-double-newline.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/find-double-newline.sh b/tools/find-double-newline.sh
index c41811483c..6e7e4cb699 100755
--- a/tools/find-double-newline.sh
+++ b/tools/find-double-newline.sh
@@ -10,7 +10,7 @@ case "$1" in
DIR="$2"
fi
- find $DIR -type f \( -name '*.c' -o -name '*.xml' \) -exec $0 diff \{\} \;
+ find $DIR -type f \( -name '*.[ch]' -o -name '*.xml' \) -exec $0 diff \{\} \;
;;
recpatch)
@@ -20,7 +20,7 @@ case "$1" in
DIR="$2"
fi
- find $DIR -type f \( -name '*.c' -o -name '*.xml' \) -exec $0 patch \{\} \;
+ find $DIR -type f \( -name '*.[ch]' -o -name '*.xml' \) -exec $0 patch \{\} \;
;;
diff)