]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
scripts: plymouth-set-default-theme reporting missing right brace
authorEric Curtin <ecurtin@redhat.com>
Fri, 1 Apr 2022 13:13:23 +0000 (14:13 +0100)
committerEric Curtin <ecurtin@redhat.com>
Fri, 1 Apr 2022 13:13:23 +0000 (14:13 +0100)
Fixes issue:

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

when executed as plymouth-set-default-theme spinner

scripts/plymouth-set-default-theme.in

index 5e978eb5d6e5786dd8160efc690b3eabde4ff9a2..4af16245a6bd0c8ec606d61f0b45fca096b2aa70 100755 (executable)
@@ -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