1
0
mirror of https://gitlab.com/JKANetwork/JKArch.git synced 2026-02-18 19:21:32 +01:00
This commit is contained in:
2017-02-13 00:09:06 +01:00
parent 74c3aef4fa
commit a01d0ac990

View File

@@ -41,10 +41,9 @@ function comm {
command=$4
fi
# Check for multisentence command and run
# Check for multisentence command for showing start of command
if [[ $multic == "0" ]];then
echo "[ RUNNING ] $1"
echo "[RUNNING] $1"
fi
#Run command and make silent if its needed.
if [[ $2 != "0" ]];then
@@ -56,13 +55,13 @@ function comm {
# When command finish, know if it ran succesfully
if [[ $? != "0" ]];then
echo "[ ERROR ] $1"
echo "[ ERROR ] $1" >> /tmp/install.log
echo "[FAILED] $1"
echo "[FAILED] $1" >> /tmp/install.log
fi
if [ $? == "0" ] && [ $multic != "1" ];then
echo "[ OK ] $1"
echo "[ OK ] $1" >> /tmp/install.log
echo "[ OK ] $1"
echo "[ OK ] $1" >> /tmp/install.log
fi
}