From: Mike Gilbert Date: Tue, 14 Jul 2015 15:12:16 +0000 (-0400) Subject: syncheck: Look for 'echo -n' usage in modules X-Git-Tag: 044~134^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F81%2Fhead;p=thirdparty%2Fdracut.git syncheck: Look for 'echo -n' usage in modules --- diff --git a/Makefile b/Makefile index 98a2fbf60..f3a5c07da 100644 --- 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 \