1
0
mirror of https://gitlab.com/JKANetwork/JKArch.git synced 2026-02-15 09:41:31 +01:00
This commit is contained in:
2017-02-12 23:56:45 +01:00
parent 782420f5b4
commit 0078454b3f

View File

@@ -28,7 +28,7 @@ function comm {
# Check for multisentence command and run
if [[ $multiSentence == "0" ]];then
if [[ $multic == "0" ]];then
echo "[ RUNNING ] $1"
fi
#Run command and make silent if its needed.
@@ -38,14 +38,6 @@ function comm {
bash -c "$command"
fi
# Update multiSentence var
if [[ $multic == "1" ]];then
multiSentence="1"
fi
if [[ $multic == "2" ]];then
multiSentence="0"
fi
# When command finish, know if it ran succesfully
if [[ $? != "0" ]];then
echo "[ ERROR ] $1"