scripts: plymouth-set-default-theme reporting missing right brace

Fixes issue:

/usr/sbin/plymouth-set-default-theme: line 199: [: missing `]'

when executed as plymouth-set-default-theme spinner
This commit is contained in:
Eric Curtin 2022-04-01 14:13:23 +01:00
parent e40a59d2c2
commit 123ca59cf2

View file

@ -196,7 +196,7 @@ if [ $DO_RESET -ne 0 ]; then
[ $DO_INITRD_REBUILD -eq 0 ] && exit 0
fi
if [ $DO_INITRD_REBUILD -ne 0 -a -z $THEME_NAME]; then
if [ $DO_INITRD_REBUILD -ne 0 -a -z $THEME_NAME ]; then
THEME_NAME=$(get_default_theme)
fi