From 1007834d9369f96ad2554a6c6c8f5822a0af3637 Mon Sep 17 00:00:00 2001 From: vinceliuice Date: Thu, 21 Jan 2021 09:49:56 +0800 Subject: [PATCH] Update install.sh --- install.sh | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/install.sh b/install.sh index 678a08d..fa4c423 100755 --- a/install.sh +++ b/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