mirror of
https://github.com/vinceliuice/grub2-themes.git
synced 2024-11-05 12:26:15 +01:00
Update install.sh
This commit is contained in:
parent
0865030039
commit
70152af6d2
@ -198,6 +198,7 @@ install() {
|
||||
prompt -i "\n Updating grub config...\n"
|
||||
|
||||
updating_grub
|
||||
prompt -w "\n * At the next restart of your computer you will see your new Grub theme: '$theme' "
|
||||
else
|
||||
# Error message
|
||||
prompt -e "\n [ Error! ] -> Run me as root! "
|
||||
@ -205,13 +206,13 @@ install() {
|
||||
# persisted execution of the script as root
|
||||
if [[ -n ${tui_root_login} ]] ; 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
|
||||
else
|
||||
read -p "[ Trusted ] Specify the root password : " -t${MAX_DELAY} -s
|
||||
[[ -n "$REPLY" ]] && {
|
||||
if [[ -n "${theme}" && -n "${screen}" ]]; then
|
||||
sudo -S <<< $REPLY "$0" "${PROG_ARGS[@]}"
|
||||
sudo -S <<< $REPLY "$0" --${theme} --${icon} --${screen}
|
||||
fi
|
||||
} || {
|
||||
operation_canceled
|
||||
@ -294,7 +295,6 @@ updating_grub() {
|
||||
|
||||
# Success message
|
||||
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() {
|
||||
|
Loading…
Reference in New Issue
Block a user