From fa656334b26ed4b971c4f8dac80f03a87a6b343e Mon Sep 17 00:00:00 2001 From: JKANetwork Date: Mon, 13 Feb 2017 00:13:20 +0100 Subject: [PATCH] edit --- installer/installer.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/installer/installer.sh b/installer/installer.sh index e9828ed..032b25f 100755 --- a/installer/installer.sh +++ b/installer/installer.sh @@ -21,7 +21,7 @@ function mostrardialog { ## $2 -> If it has to be silent (0->Show, 1/not 0->Silent) ## $3 -> Where to run (sudo: sudo $3, chroot: in the chroot as root, chuser: in chroot as the created user ## $4 -> Command to run -## $5 -> Is a "various-sentence command"? (0 -> First/Last/Unique, 1-> Not lastest ) +## $5 -> Is a "various-sentence command"? (1 -> First, 2-> Not lastest, 3 -> Lastest ; 0/none is for unique too) function comm { local command local multic @@ -42,7 +42,7 @@ function comm { fi # Check for multisentence command for showing start of command - if [[ $multic == "0" ]];then + if [[ $multic == "0" || $multic == "1" ]];then echo "[RUNNING] $1" fi #Run command and make silent if its needed. @@ -57,9 +57,7 @@ function comm { if [[ $? != "0" ]];then echo "[FAILED] $1" echo "[FAILED] $1" >> /tmp/install.log - fi - - if [ $? == "0" ] && [ $multic != "1" ];then + elif [ $? == "0" ] && [[ $multic == "0" || $multic == "3" ]];then echo "[ OK ] $1" echo "[ OK ] $1" >> /tmp/install.log fi