aboutsummaryrefslogtreecommitdiff
path: root/tools
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
parenttree-wide: fix a couple of TABs (diff)
downloadsystemd-3dfd31c8d241295032c75a6f9c6df33b165914bd.tar.gz
systemd-3dfd31c8d241295032c75a6f9c6df33b165914bd.tar.bz2
systemd-3dfd31c8d241295032c75a6f9c6df33b165914bd.zip
find-double-newline: look in headers too
Diffstat (limited to 'tools')
-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 c41811483..6e7e4cb69 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)