Update install.sh

This commit is contained in:
vinceliuice 2024-07-31 13:57:24 +08:00
parent 0628270f03
commit c47af2ef5d

View File

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