]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
fix: shellcheck for modules.d/03modsign/module-setup.sh
authorHarald Hoyer <harald@redhat.com>
Fri, 12 Feb 2021 12:26:10 +0000 (13:26 +0100)
committerHarald Hoyer <harald@hoyer.xyz>
Mon, 15 Feb 2021 10:00:37 +0000 (11:00 +0100)
modules.d/03modsign/module-setup.sh

index 4c5b46413dcff49eb8212fe466c24e7c2023d9f0..9e1502cea05845b44a0eb145f265dd315966fcfa 100755 (executable)
@@ -12,7 +12,7 @@ check() {
     # do not include module in hostonly mode,
     # if no keys are present
     if [[ $hostonly ]]; then
-        x=$(echo $dracutsysrootdir/lib/modules/keys/*)
+        x=$(echo "$dracutsysrootdir"/lib/modules/keys/*)
         [[ "${x}" = "$dracutsysrootdir/lib/modules/keys/*" ]] && return 255
     fi
 
@@ -31,7 +31,7 @@ install() {
 
     inst_hook pre-trigger 01 "$moddir/load-modsign-keys.sh"
 
-    for x in $dracutsysrootdir/lib/modules/keys/* ; do
+    for x in "$dracutsysrootdir"/lib/modules/keys/* ; do
         [[ "${x}" = "$dracutsysrootdir/lib/modules/keys/*" ]] && break
         inst_simple "${x#$dracutsysrootdir}"
     done