]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
syncheck: Look for 'echo -n' usage in modules 81/head
authorMike Gilbert <floppym@gentoo.org>
Tue, 14 Jul 2015 15:12:16 +0000 (11:12 -0400)
committerMike Gilbert <floppym@gentoo.org>
Wed, 15 Jul 2015 02:24:27 +0000 (22:24 -0400)
Makefile

index 98a2fbf60418ebfe39dd6c076e1dc333c76635bb..f3a5c07da462a9304ec5b1d342dc442a1e3bc005 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -212,7 +212,8 @@ syncheck:
                 [ "$${i##*/}" = "module-setup.sh" ] && continue; \
                 read line < "$$i"; [ "$${line#*bash*}" != "$$line" ] && continue; \
                [ $$V ] && echo "posix syntax check: $$i"; bash --posix -n "$$i" ; ret=$$(($$ret+$$?)); \
-               [ $$V ] && echo "checking for [[: $$i"; if grep -Fq '[[ ' "$$i" ; then ret=$$(($$ret+1)); echo "$$i contains [["; fi \
+               [ $$V ] && echo "checking for [[: $$i"; if grep -Fq '[[ ' "$$i" ; then ret=$$(($$ret+1)); echo "$$i contains [["; fi; \
+               [ $$V ] && echo "checking for echo -n: $$i"; if grep -Fq 'echo -n ' "$$i" ; then ret=$$(($$ret+1)); echo "$$i contains echo -n"; fi \
        done;exit $$ret
        @ret=0;for i in *.sh mkinitrd-dracut.sh modules.d/*/*.sh \
                        modules.d/*/module-setup.sh; do \