commit:     5dbcdbb8a6c5ae3c8e919faff405dad843e34144
Author:     Rick Farina (Zero_Chaos) <zerochaos <AT> gentoo <DOT> org>
AuthorDate: Tue Aug  8 14:40:20 2017 +0000
Commit:     Richard Farina <zerochaos <AT> gentoo <DOT> org>
CommitDate: Tue Aug  8 14:40:20 2017 +0000
URL:        https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=5dbcdbb8

double quotes are required if you expect to interpolate, putz

 defaults/initrd.scripts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/defaults/initrd.scripts b/defaults/initrd.scripts
index eb75d93..d8be990 100644
--- a/defaults/initrd.scripts
+++ b/defaults/initrd.scripts
@@ -1785,7 +1785,7 @@ strip_mount_options()
 
 checkzconfig() {
   if [ -r "/proc/config.gz" ]; then
-    if zcat /proc/config.gz | grep -E 'CONFIG_${1}=(m|y)' 1>/dev/null;
+    if zcat /proc/config.gz | grep -E "CONFIG_${1}=(m|y)" 1>/dev/null;
     then
      return 0
     fi

Reply via email to