pass argument to functon

This commit is contained in:
Marcel Stangenberger 2025-04-11 19:40:21 +00:00
parent 44a7fa63d1
commit 1cf283e796

View File

@ -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