mirror of
https://gitlab.com/JKANetwork/JKArch.git
synced 2026-02-19 19:51:32 +01:00
edit
This commit is contained in:
@@ -41,10 +41,9 @@ function comm {
|
|||||||
command=$4
|
command=$4
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Check for multisentence command for showing start of command
|
||||||
# Check for multisentence command and run
|
|
||||||
if [[ $multic == "0" ]];then
|
if [[ $multic == "0" ]];then
|
||||||
echo "[ RUNNING ] $1"
|
echo "[RUNNING] $1"
|
||||||
fi
|
fi
|
||||||
#Run command and make silent if its needed.
|
#Run command and make silent if its needed.
|
||||||
if [[ $2 != "0" ]];then
|
if [[ $2 != "0" ]];then
|
||||||
@@ -56,13 +55,13 @@ function comm {
|
|||||||
|
|
||||||
# When command finish, know if it ran succesfully
|
# When command finish, know if it ran succesfully
|
||||||
if [[ $? != "0" ]];then
|
if [[ $? != "0" ]];then
|
||||||
echo "[ ERROR ] $1"
|
echo "[FAILED] $1"
|
||||||
echo "[ ERROR ] $1" >> /tmp/install.log
|
echo "[FAILED] $1" >> /tmp/install.log
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $? == "0" ] && [ $multic != "1" ];then
|
if [ $? == "0" ] && [ $multic != "1" ];then
|
||||||
echo "[ OK ] $1"
|
echo "[ OK ] $1"
|
||||||
echo "[ OK ] $1" >> /tmp/install.log
|
echo "[ OK ] $1" >> /tmp/install.log
|
||||||
fi
|
fi
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user