]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
fix: shellcheck for modules.d/06dbus-daemon/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/06dbus-daemon/module-setup.sh

index fe0d64c45d53b6c4c3bd75884dfa6ce093759b37..e71e222468022851e1e68c7241c5b46d16551ce2 100755 (executable)
@@ -72,8 +72,8 @@ install() {
         "$initdir$systemdsystemunitdir/dbus.socket"
 
     # Adding the user and group for dbus
-    grep '^\(d\|message\)bus:' $dracutsysrootdir/etc/passwd >> "$initdir/etc/passwd"
-    grep '^\(d\|message\)bus:' $dracutsysrootdir/etc/group >> "$initdir/etc/group"
+    grep '^\(d\|message\)bus:' "$dracutsysrootdir"/etc/passwd >> "$initdir/etc/passwd"
+    grep '^\(d\|message\)bus:' "$dracutsysrootdir"/etc/group >> "$initdir/etc/group"
 
     # Install the hosts local user configurations if enabled.
     if [[ $hostonly ]]; then