Blame 0044-syncheck-Look-for-echo-n-usage-in-modules.patch
|
Harald Hoyer |
368a0c |
From 24f32511fc8ae616aa967446ce33ab0a7fc27077 Mon Sep 17 00:00:00 2001
|
|
Harald Hoyer |
368a0c |
From: Mike Gilbert <floppym@gentoo.org>
|
|
Harald Hoyer |
368a0c |
Date: Tue, 14 Jul 2015 11:12:16 -0400
|
|
Harald Hoyer |
368a0c |
Subject: [PATCH] syncheck: Look for 'echo -n' usage in modules
|
|
Harald Hoyer |
368a0c |
|
|
Harald Hoyer |
368a0c |
---
|
|
Harald Hoyer |
368a0c |
Makefile | 3 ++-
|
|
Harald Hoyer |
368a0c |
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
Harald Hoyer |
368a0c |
|
|
Harald Hoyer |
368a0c |
diff --git a/Makefile b/Makefile
|
|
Harald Hoyer |
368a0c |
index 98a2fbf..f3a5c07 100644
|
|
Harald Hoyer |
368a0c |
--- a/Makefile
|
|
Harald Hoyer |
368a0c |
+++ b/Makefile
|
|
Harald Hoyer |
368a0c |
@@ -212,7 +212,8 @@ syncheck:
|
|
Harald Hoyer |
368a0c |
[ "$${i##*/}" = "module-setup.sh" ] && continue; \
|
|
Harald Hoyer |
368a0c |
read line < "$$i"; [ "$${line#*bash*}" != "$$line" ] && continue; \
|
|
Harald Hoyer |
368a0c |
[ $$V ] && echo "posix syntax check: $$i"; bash --posix -n "$$i" ; ret=$$(($$ret+$$?)); \
|
|
Harald Hoyer |
368a0c |
- [ $$V ] && echo "checking for [[: $$i"; if grep -Fq '[[ ' "$$i" ; then ret=$$(($$ret+1)); echo "$$i contains [["; fi \
|
|
Harald Hoyer |
368a0c |
+ [ $$V ] && echo "checking for [[: $$i"; if grep -Fq '[[ ' "$$i" ; then ret=$$(($$ret+1)); echo "$$i contains [["; fi; \
|
|
Harald Hoyer |
368a0c |
+ [ $$V ] && echo "checking for echo -n: $$i"; if grep -Fq 'echo -n ' "$$i" ; then ret=$$(($$ret+1)); echo "$$i contains echo -n"; fi \
|
|
Harald Hoyer |
368a0c |
done;exit $$ret
|
|
Harald Hoyer |
368a0c |
@ret=0;for i in *.sh mkinitrd-dracut.sh modules.d/*/*.sh \
|
|
Harald Hoyer |
368a0c |
modules.d/*/module-setup.sh; do \
|