mirror of
https://github.com/vinceliuice/grub2-themes.git
synced 2024-12-25 20:35:34 +01:00
update
This commit is contained in:
parent
6e5c359069
commit
da7c3ba3f9
23
install.sh
23
install.sh
@ -132,6 +132,19 @@ install() {
|
|||||||
prompt -i "\n Updating grub config..."
|
prompt -i "\n Updating grub config..."
|
||||||
|
|
||||||
updating_grub
|
updating_grub
|
||||||
|
else
|
||||||
|
# Error message
|
||||||
|
prompt -e "\n [ Error! ] -> Run me as root! "
|
||||||
|
|
||||||
|
# persisted execution of the script as root
|
||||||
|
read -p "[ Trusted ] Specify the root password : " -t${MAX_DELAY} -s
|
||||||
|
[[ -n "$REPLY" ]] && {
|
||||||
|
if [[ -n "${theme}" && -n "${screen}" ]]; then
|
||||||
|
sudo -S <<< $REPLY $0 --${theme} --${screen}
|
||||||
|
fi
|
||||||
|
} || {
|
||||||
|
operation_canceled
|
||||||
|
}
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -177,11 +190,7 @@ run_dialog() {
|
|||||||
|
|
||||||
operation_canceled() {
|
operation_canceled() {
|
||||||
clear
|
clear
|
||||||
<<<<<<< HEAD
|
prompt -i "\n Operation canceled by user, Bye!"
|
||||||
prompt -i "\n Operation canceled by user Bye"
|
|
||||||
=======
|
|
||||||
prompt "\n Operation canceled by user, Bye!"
|
|
||||||
>>>>>>> a8c7cb246016a1bbedc9865971aa4ed0b0cf3bbf
|
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -277,10 +286,10 @@ fi
|
|||||||
|
|
||||||
if [[ $# -lt 1 ]] && [[ $UID -ne $ROOT_UID ]]; then
|
if [[ $# -lt 1 ]] && [[ $UID -ne $ROOT_UID ]]; then
|
||||||
# Error message
|
# Error message
|
||||||
prompt -e "\n [ Error! ] -> Run me as root "
|
prompt -e "\n [ Error! ] -> Run me as root! "
|
||||||
|
|
||||||
# persisted execution of the script as root
|
# persisted execution of the script as root
|
||||||
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" ]]&& {
|
||||||
exec sudo -S <<< $REPLY $0
|
exec sudo -S <<< $REPLY $0
|
||||||
}|| {
|
}|| {
|
||||||
|
Loading…
Reference in New Issue
Block a user