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

diff --git a/modules.d/01systemd-sysctl/.shchkdir b/modules.d/01systemd-sysctl/.shchkdir
new file mode 100644 (file)
index 0000000..e69de29
index e5148d547839e081b21a0238a2d87b781652824f..38a2640a5401e4f0377067117294d37b394df27d 100755 (executable)
@@ -6,7 +6,7 @@
 check() {
 
     # If the binary(s) requirements are not fulfilled the module can't be installed
-    require_binaries $systemdutildir/systemd-sysctl || return 1
+    require_binaries "$systemdutildir"/systemd-sysctl || return 1
 
     # Return 255 to only include the module, if another module requires it.
     return 255
@@ -27,19 +27,18 @@ depends() {
 install() {
 
     inst_multiple -o \
-        $sysctld/*.conf \
-        $systemdsystemunitdir/systemd-sysctl.service \
-        $systemdsystemunitdir/sysinit.target.wants/systemd-sysctl.service \
-        $systemdutildir/systemd-sysctl
+        "$sysctld"/*.conf \
+        "$systemdsystemunitdir"/systemd-sysctl.service \
+        "$systemdsystemunitdir"/sysinit.target.wants/systemd-sysctl.service \
+        "$systemdutildir"/systemd-sysctl
 
     # Install the hosts local user configurations if enabled.
     if [[ $hostonly ]]; then
         inst_multiple -H -o \
             /etc/sysctl.conf \
-            $sysctldconfdir/*.conf \
-            $systemdsystemconfdir/systemd-sysctl.service \
-            $systemdsystemconfdir/systemd-sysctl.service.d/*.conf \
-            ${NULL}
+            "$sysctldconfdir"/*.conf \
+            "$systemdsystemconfdir"/systemd-sysctl.service \
+            "$systemdsystemconfdir"/systemd-sysctl.service.d/*.conf
     fi
 
     # Enable the systemd type service unit for sysctl.