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

index 9ced85fdf65b9d31c7f49f0366204c63b961cab7..a6aabe70721c72b868916c6aaecd78ef00883f16 100755 (executable)
@@ -24,14 +24,14 @@ if [[ $hostonly ]]; then
         done
     fi
 
-    if [ -L $dracutsysrootdir/usr/share/plymouth/themes/default.plymouth ]; then
+    if [[ -L $dracutsysrootdir/usr/share/plymouth/themes/default.plymouth ]]; then
         inst /usr/share/plymouth/themes/default.plymouth
         # Install plugin for this theme
-        PLYMOUTH_PLUGIN=$(grep "^ModuleName=" $dracutsysrootdir/usr/share/plymouth/themes/default.plymouth | while read a b c || [ -n "$b" ]; do echo $b; done;)
+        PLYMOUTH_PLUGIN=$(grep "^ModuleName=" "$dracutsysrootdir"/usr/share/plymouth/themes/default.plymouth | while read a b c || [ -n "$b" ]; do echo $b; done;)
         inst_libdir_file "plymouth/${PLYMOUTH_PLUGIN}.so"
     fi
 else
-    for x in $dracutsysrootdir/usr/share/plymouth/themes/{text,details}/* ; do
+    for x in "$dracutsysrootdir"/usr/share/plymouth/themes/{text,details}/* ; do
         [[ -f "$x" ]] || continue
         THEME_DIR=$(dirname "${x#$dracutsysrootdir}")
         mkdir -m 0755 -p "${initdir}/$THEME_DIR"