From a7e9fe09bc7bfa0537b003c4e6f274a704f227be Mon Sep 17 00:00:00 2001 From: JKANetwork Date: Sun, 12 Feb 2017 23:51:35 +0100 Subject: [PATCH] fixes.. --- installer/installer.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/installer/installer.sh b/installer/installer.sh index 36676c4..4598c57 100755 --- a/installer/installer.sh +++ b/installer/installer.sh @@ -17,18 +17,18 @@ function comm { else command=$4 fi - - # Make silent if it has to be - if [[ $2 != "0" ]];then - command="${command} >/dev/null" - fi + # Check for multisentence command and run if [[ $multiSentence == "0" ]];then echo "[ RUNNING ] $1" fi - #Run command. (Command is $4) + #Run command and make silent if its needed. + if [[ $2 != "0" ]];then + bash -c "$command" >/dev/null 1>/dev/null + else bash -c "$command" + fi # Update multiSentence var if [[ $5 == "1" ]];then