mirror of
https://github.com/vinceliuice/grub2-themes.git
synced 2024-11-05 13:26:14 +01:00
Update install.sh
This commit is contained in:
parent
0628270f03
commit
c47af2ef5d
@ -128,8 +128,6 @@ 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
|
||||||
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}"
|
||||||
|
|
||||||
@ -280,7 +278,6 @@ run_dialog() {
|
|||||||
else
|
else
|
||||||
#block for 3 seconds before allowing another attempt
|
#block for 3 seconds before allowing another attempt
|
||||||
sleep 3
|
sleep 3
|
||||||
echo -e '\0033\0143'
|
|
||||||
prompt -e "\n [ Error! ] -> Incorrect password!\n"
|
prompt -e "\n [ Error! ] -> Incorrect password!\n"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
@ -332,7 +329,6 @@ run_dialog() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
operation_canceled() {
|
operation_canceled() {
|
||||||
echo -e '\0033\0143'
|
|
||||||
prompt -i "\n Operation canceled by user, Bye!"
|
prompt -i "\n Operation canceled by user, Bye!"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
@ -451,7 +447,6 @@ remove() {
|
|||||||
else
|
else
|
||||||
#block for 3 seconds before allowing another attempt
|
#block for 3 seconds before allowing another attempt
|
||||||
sleep 3
|
sleep 3
|
||||||
echo -e '\0033\0143'
|
|
||||||
prompt -e "\n [ Error! ] -> Incorrect password!\n"
|
prompt -e "\n [ Error! ] -> Incorrect password!\n"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user