1
0
mirror of https://gitlab.com/JKANetwork/JKArch.git synced 2026-02-14 09:11:31 +01:00
This commit is contained in:
2017-02-13 00:13:20 +01:00
parent a01d0ac990
commit fa656334b2

View File

@@ -21,7 +21,7 @@ function mostrardialog {
## $2 -> If it has to be silent (0->Show, 1/not 0->Silent)
## $3 -> Where to run (sudo: sudo $3, chroot: in the chroot as root, chuser: in chroot as the created user
## $4 -> Command to run
## $5 -> Is a "various-sentence command"? (0 -> First/Last/Unique, 1-> Not lastest )
## $5 -> Is a "various-sentence command"? (1 -> First, 2-> Not lastest, 3 -> Lastest ; 0/none is for unique too)
function comm {
local command
local multic
@@ -42,7 +42,7 @@ function comm {
fi
# Check for multisentence command for showing start of command
if [[ $multic == "0" ]];then
if [[ $multic == "0" || $multic == "1" ]];then
echo "[RUNNING] $1"
fi
#Run command and make silent if its needed.
@@ -57,9 +57,7 @@ function comm {
if [[ $? != "0" ]];then
echo "[FAILED] $1"
echo "[FAILED] $1" >> /tmp/install.log
fi
if [ $? == "0" ] && [ $multic != "1" ];then
elif [ $? == "0" ] && [[ $multic == "0" || $multic == "3" ]];then
echo "[ OK ] $1"
echo "[ OK ] $1" >> /tmp/install.log
fi