Files
deploy/deploy.sh
2025-07-21 16:23:38 +02:00

26 lines
401 B
Bash

#!/bin/bash
REPO=https://git.xo.nl/marcel/deploy/raw/branch/master
GREEN='\033[0;32m'
RED='\033[0;31m'
NOCOL='\033[0m'
Fail() {
echo -e "${RED}no package was selected, exitting${NOCOL}"
exit 1
}
Exec() {
echo -e "${GREEN}Starting installation of $1${NOCOL}"
sleep 2
bash -c "$(curl -fsSL $REPO/$1/install.sh)"
exit 0
}
if [[ -z $1 ]]
then
Fail
else
Exec $1
fi