fix more bugs

This commit is contained in:
godalming123 2022-02-27 12:05:31 +00:00 committed by GitHub
parent de8c4dabcb
commit bd311fae28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ fi
# set kernel parameter for adding splash screen
sed -i 's/GRUB_CMDLINE_LINUX_DEFAULT="[^"]*/& splash /' /etc/default/grub
if [ "$GRUB_THEME" == "cyberRE"]; then
if [[ ${GRUB_THEME} == "cyberRE" ]]; then
echo -e "Installing CyberRe Grub theme..."
THEME_DIR="/boot/grub/themes"
THEME_NAME=CyberRe
@ -49,7 +49,7 @@ if [ "$GRUB_THEME" == "cyberRE"]; then
echo "GRUB_THEME=\"${THEME_DIR}/${THEME_NAME}/theme.txt\"" >> /etc/default/grub
fi
if [ "$GRUB_INSTALL" == "yes"]; then
if [[ ${GRUB_INSTALL} == "yes" ]]; then
echo -e "Updating grub..."
grub-mkconfig -o /boot/grub/grub.cfg
echo -e "All set!"