This commit is contained in:
vinceliuice 2023-08-16 00:29:57 +08:00
parent 7da365a621
commit de378454b5

View file

@ -130,7 +130,7 @@ install() {
# Check for root access and proceed if it is present # Check for root access and proceed if it is present
if [[ "$UID" -eq "$ROOT_UID" ]]; then if [[ "$UID" -eq "$ROOT_UID" ]]; then
clear echo -e '\0033\0143'
# Generate the theme in "/usr/share/grub/themes" # Generate the theme in "/usr/share/grub/themes"
generate "${theme}" "${icon}" "${screen}" generate "${theme}" "${icon}" "${screen}"
@ -290,7 +290,7 @@ run_dialog() {
else else
#block for 3 seconds before allowing another attempt #block for 3 seconds before allowing another attempt
sleep 3 sleep 3
clear echo -e '\0033\0143'
prompt -e "\n [ Error! ] -> Incorrect password!\n" prompt -e "\n [ Error! ] -> Incorrect password!\n"
exit 1 exit 1
fi fi
@ -342,7 +342,7 @@ run_dialog() {
} }
operation_canceled() { operation_canceled() {
clear echo -e '\0033\0143'
prompt -i "\n Operation canceled by user, Bye!" prompt -i "\n Operation canceled by user, Bye!"
exit 1 exit 1
} }
@ -462,7 +462,7 @@ remove() {
else else
#block for 3 seconds before allowing another attempt #block for 3 seconds before allowing another attempt
sleep 3 sleep 3
clear echo -e '\0033\0143'
prompt -e "\n [ Error! ] -> Incorrect password!\n" prompt -e "\n [ Error! ] -> Incorrect password!\n"
exit 1 exit 1
fi fi