From efa1dd43069214e81b16a5ddce68be5798550ee3 Mon Sep 17 00:00:00 2001 From: vinceliuice Date: Mon, 28 Oct 2019 14:45:19 +0800 Subject: [PATCH] update --- install.sh | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/install.sh b/install.sh index 77f5906..d3f5496 100755 --- a/install.sh +++ b/install.sh @@ -184,19 +184,14 @@ install_dialog() { if [ ! "$(which dialog 2> /dev/null)" ]; then prompt -i "\n 'dialog' needs to be installed for this shell" if has_command zypper; then - sudo zypper in dialog - elif has_command apt-get; then - + elif has_command apt-get; then sudo apt-get install dialog - elif has_command dnf; then - + elif has_command dnf; then sudo dnf install dialog - elif has_command yum; then - + elif has_command yum; then sudo yum install dialog - elif has_command pacman; then - + elif has_command pacman; then sudo pacman -S --noconfirm dialog fi fi