1
0
mirror of https://gitlab.com/JKANetwork/JKArch.git synced 2026-02-14 17:21:32 +01:00
This commit is contained in:
2017-02-12 23:51:35 +01:00
parent ea93691fe6
commit a7e9fe09bc

View File

@@ -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