mirror of
https://gitlab.com/JKANetwork/JKArch.git
synced 2026-02-19 19:51:32 +01:00
edit
This commit is contained in:
@@ -21,7 +21,7 @@ function mostrardialog {
|
|||||||
## $2 -> If it has to be silent (0->Show, 1/not 0->Silent)
|
## $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
|
## $3 -> Where to run (sudo: sudo $3, chroot: in the chroot as root, chuser: in chroot as the created user
|
||||||
## $4 -> Command to run
|
## $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 {
|
function comm {
|
||||||
local command
|
local command
|
||||||
local multic
|
local multic
|
||||||
@@ -42,7 +42,7 @@ function comm {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Check for multisentence command for showing start of command
|
# Check for multisentence command for showing start of command
|
||||||
if [[ $multic == "0" ]];then
|
if [[ $multic == "0" || $multic == "1" ]];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.
|
||||||
@@ -57,9 +57,7 @@ function comm {
|
|||||||
if [[ $? != "0" ]];then
|
if [[ $? != "0" ]];then
|
||||||
echo "[FAILED] $1"
|
echo "[FAILED] $1"
|
||||||
echo "[FAILED] $1" >> /tmp/install.log
|
echo "[FAILED] $1" >> /tmp/install.log
|
||||||
fi
|
elif [ $? == "0" ] && [[ $multic == "0" || $multic == "3" ]];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