]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
fix(systemd-modules-load): shellcheck for modules.d/01systemd-modules-load
authorHarald Hoyer <harald@redhat.com>
Fri, 26 Mar 2021 09:29:07 +0000 (10:29 +0100)
committerHarald Hoyer <harald@hoyer.xyz>
Tue, 30 Mar 2021 08:13:10 +0000 (10:13 +0200)
modules.d/01systemd-modules-load/.shchkdir [new file with mode: 0644]
modules.d/01systemd-modules-load/module-setup.sh

diff --git a/modules.d/01systemd-modules-load/.shchkdir b/modules.d/01systemd-modules-load/.shchkdir
new file mode 100644 (file)
index 0000000..e69de29
index c02e914fcff18ef0c73a763a5700cef03bd062c1..f224cd0fe5d23b0024f12e766b430f4835228428 100644 (file)
@@ -6,7 +6,7 @@
 check() {
 
     # If the binary(s) requirements are not fulfilled the module can't be installed
-    require_binaries $systemdutildir/systemd-modules-load || return 1
+    require_binaries "$systemdutildir"/systemd-modules-load || return 1
 
     # Return 255 to only include the module, if another module requires it.
     return 255
@@ -27,20 +27,19 @@ depends() {
 install() {
 
     # Create systemd-modules-load related directories.
-    inst_dir $modulesload
-    inst_dir $modulesloadconfdir
+    inst_dir "$modulesload"
+    inst_dir "$modulesloadconfdir"
 
     # Install related files for systemd-modules-load
     inst_multiple -o \
-        $systemdsystemunitdir/systemd-modules-load.service \
-        $systemdutildir/systemd-modules-load
+        "$systemdsystemunitdir"/systemd-modules-load.service \
+        "$systemdutildir"/systemd-modules-load
 
     # Install local user configurations if host only is enabled..
     if [[ $hostonly ]]; then
         inst_multiple -H -o \
-            $systemdsystemconfdir/systemd-modules-load.service \
-            $systemdsystemconfdir/systemd-systemd-modules-load.d/*.conf \
-            ${NULL}
+            "$systemdsystemconfdir"/systemd-modules-load.service \
+            "$systemdsystemconfdir"/systemd-systemd-modules-load.d/*.conf
     fi
 
     # Enable the systemd type service unit for systemd-modules-load.