mirror of
https://github.com/vinceliuice/grub2-themes.git
synced 2024-11-05 12:36:13 +01:00
Update install.sh
This commit is contained in:
parent
3a6af1d987
commit
1007834d93
10
install.sh
10
install.sh
@ -76,10 +76,8 @@ install() {
|
||||
elif [[ ${theme} == 'vimix' ]]; then
|
||||
local name="Vimix"
|
||||
else
|
||||
prompt -i "\n Run ./install.sh -h for help or install dialog"
|
||||
install_dialog
|
||||
prompt -i "\n Run ./install.sh again!"
|
||||
exit 0
|
||||
prompt -i "\n Run ./install.sh -h for help!"
|
||||
install_dialog && run_dialog
|
||||
fi
|
||||
|
||||
if [[ ${screen} == '2k' ]]; then
|
||||
@ -348,7 +346,7 @@ updating_grub() {
|
||||
|
||||
install_dialog() {
|
||||
if [ ! "$(which dialog 2> /dev/null)" ]; then
|
||||
prompt -i "\n 'dialog' needs to be installed for this shell"
|
||||
prompt -i "\n 'dialog' need to be installed for this shell"
|
||||
if has_command zypper; then
|
||||
sudo zypper in dialog
|
||||
elif has_command apt-get; then
|
||||
@ -429,7 +427,7 @@ remove() {
|
||||
|
||||
# Show terminal user interface for better use
|
||||
if [[ $# -lt 1 ]] && [[ -x /usr/bin/dialog ]] ; then
|
||||
run_dialog
|
||||
install_dialog && run_dialog
|
||||
fi
|
||||
|
||||
if [[ $# -lt 1 ]] && [[ $UID -ne $ROOT_UID ]] && [[ ! -x /usr/bin/dialog ]] ; then
|
||||
|
Loading…
Reference in New Issue
Block a user