Update install.sh

This commit is contained in:
Vince 2020-10-18 22:24:56 +08:00
parent 0865030039
commit 70152af6d2

View file

@ -198,6 +198,7 @@ install() {
prompt -i "\n Updating grub config...\n" prompt -i "\n Updating grub config...\n"
updating_grub updating_grub
prompt -w "\n * At the next restart of your computer you will see your new Grub theme: '$theme' "
else else
# Error message # Error message
prompt -e "\n [ Error! ] -> Run me as root! " prompt -e "\n [ Error! ] -> Run me as root! "
@ -205,13 +206,13 @@ install() {
# persisted execution of the script as root # persisted execution of the script as root
if [[ -n ${tui_root_login} ]] ; then if [[ -n ${tui_root_login} ]] ; then
if [[ -n "${theme}" && -n "${screen}" ]]; then if [[ -n "${theme}" && -n "${screen}" ]]; then
sudo -S <<< ${tui_root_login} $0 "${PROG_ARGS[@]}" sudo -S <<< ${tui_root_login} $0 --${theme} --${icon} --${screen}
fi fi
else else
read -p "[ Trusted ] Specify the root password : " -t${MAX_DELAY} -s read -p "[ Trusted ] Specify the root password : " -t${MAX_DELAY} -s
[[ -n "$REPLY" ]] && { [[ -n "$REPLY" ]] && {
if [[ -n "${theme}" && -n "${screen}" ]]; then if [[ -n "${theme}" && -n "${screen}" ]]; then
sudo -S <<< $REPLY "$0" "${PROG_ARGS[@]}" sudo -S <<< $REPLY "$0" --${theme} --${icon} --${screen}
fi fi
} || { } || {
operation_canceled operation_canceled
@ -294,7 +295,6 @@ updating_grub() {
# Success message # Success message
prompt -s "\n * All done!" prompt -s "\n * All done!"
prompt -w "\n * At the next restart of your computer you will see your new Grub theme: '$theme' "
} }
install_dialog() { install_dialog() {