From bd31a5e64e28b654b082a31b8bffc5b8852dd42b Mon Sep 17 00:00:00 2001 From: godalming123 Date: Sun, 27 Feb 2022 11:05:22 +0000 Subject: [PATCH] improve --- scripts/startup.sh | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/scripts/startup.sh b/scripts/startup.sh index 894d8c9..4b274d9 100755 --- a/scripts/startup.sh +++ b/scripts/startup.sh @@ -298,15 +298,19 @@ grubInstall () { # === select grub theme === grubTheme () { - clear - logo - grub_install - if ["$GRUB_INSTALL" == "yes"]; then echo -ne "Select your grub theme:\n" options=(cyberRE none) select_option $? 4 "${options[@]}" grub_theme=${options[$?]} set_option GRUB_THEME $grub_theme +} + +grubOptions () { + clear + logo + grubInstall + if ["$grub_install" == "yes"]; then + grubTheme else set_option GRUB_THEME none fi @@ -352,7 +356,7 @@ installtype () { # === setup basic options for server installation === userinfo -grubTheme +grubOptions aurhelper desktopenv