fix: shellcheck for modules.d/50plymouth/plymouth-populate-initrd.sh

master
Harald Hoyer 2021-02-12 13:26:11 +01:00 committed by Harald Hoyer
parent 5feb62872e
commit 0412f42771
1 changed files with 3 additions and 3 deletions

View File

@ -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"