From: Harald Hoyer Date: Fri, 12 Feb 2021 12:26:11 +0000 (+0100) Subject: fix: shellcheck for modules.d/50plymouth/plymouth-populate-initrd.sh X-Git-Tag: 052~53 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0412f42771c7e3574b6e16c39fd8a1a90cf1b8b7;p=thirdparty%2Fdracut.git fix: shellcheck for modules.d/50plymouth/plymouth-populate-initrd.sh --- diff --git a/modules.d/50plymouth/plymouth-populate-initrd.sh b/modules.d/50plymouth/plymouth-populate-initrd.sh index 9ced85fdf..a6aabe707 100755 --- a/modules.d/50plymouth/plymouth-populate-initrd.sh +++ b/modules.d/50plymouth/plymouth-populate-initrd.sh @@ -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"