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