pass argument to functon
This commit is contained in:
parent
44a7fa63d1
commit
1cf283e796
@ -13,7 +13,7 @@ Fail() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Exec() {
|
Exec() {
|
||||||
echo -e "${GREEN}Starting installation of $1${NOCOL}"
|
echo -e "${GREEN}Starting installation of $1${NOCOL}"
|
||||||
sleep 2
|
sleep 2
|
||||||
bash -c "$(curl -fsSL $REPO/raw/master/$1/install.sh)"
|
bash -c "$(curl -fsSL $REPO/raw/master/$1/install.sh)"
|
||||||
exit 0
|
exit 0
|
||||||
@ -23,5 +23,5 @@ if [[ -z $1 ]]
|
|||||||
then
|
then
|
||||||
Fail
|
Fail
|
||||||
else
|
else
|
||||||
Exec
|
Exec $1
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user