added colors and version info

This commit is contained in:
Marcel Stangenberger 2025-04-11 19:15:44 +00:00
parent f44fbf44a3
commit 27be94c83f

View File

@ -1,10 +1,17 @@
#!/bin/bash #!/bin/bash
## Build v0.1
REPO=https://git.xoservice.nl/marcel/deploy REPO=https://git.xoservice.nl/marcel/deploy
GREEN='\033[0;32m'
RED='\033[0;31m'
NOCOL='\033[0m'
echo -e "${GREEN}XO Application deployment...${NOCOL}"
echo -n
if [[ -z $1 ]] if [[ -z $1 ]]
then then
echo "no package selected, exitting" echo "${RED}no package selected, exitting${NOCOL}"
exit 1 exit 1
else else
bash -c "$(curl -fsSL $REPO/raw/master/$1/install.sh)" bash -c "$(curl -fsSL $REPO/raw/master/$1/install.sh)"