mirror of
https://github.com/vinceliuice/grub2-themes.git
synced 2024-11-05 14:36:13 +01:00
Fixed #203
This commit is contained in:
parent
7da365a621
commit
de378454b5
@ -130,7 +130,7 @@ install() {
|
||||
|
||||
# Check for root access and proceed if it is present
|
||||
if [[ "$UID" -eq "$ROOT_UID" ]]; then
|
||||
clear
|
||||
echo -e '\0033\0143'
|
||||
|
||||
# Generate the theme in "/usr/share/grub/themes"
|
||||
generate "${theme}" "${icon}" "${screen}"
|
||||
@ -290,7 +290,7 @@ run_dialog() {
|
||||
else
|
||||
#block for 3 seconds before allowing another attempt
|
||||
sleep 3
|
||||
clear
|
||||
echo -e '\0033\0143'
|
||||
prompt -e "\n [ Error! ] -> Incorrect password!\n"
|
||||
exit 1
|
||||
fi
|
||||
@ -342,7 +342,7 @@ run_dialog() {
|
||||
}
|
||||
|
||||
operation_canceled() {
|
||||
clear
|
||||
echo -e '\0033\0143'
|
||||
prompt -i "\n Operation canceled by user, Bye!"
|
||||
exit 1
|
||||
}
|
||||
@ -462,7 +462,7 @@ remove() {
|
||||
else
|
||||
#block for 3 seconds before allowing another attempt
|
||||
sleep 3
|
||||
clear
|
||||
echo -e '\0033\0143'
|
||||
prompt -e "\n [ Error! ] -> Incorrect password!\n"
|
||||
exit 1
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user