|
|
|
@ -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
|
|
|
|
|