removed unused functions
This commit is contained in:
25
deploy.sh
25
deploy.sh
@@ -6,19 +6,13 @@ GREEN='\033[0;32m'
|
|||||||
RED='\033[0;31m'
|
RED='\033[0;31m'
|
||||||
NOCOL='\033[0m'
|
NOCOL='\033[0m'
|
||||||
|
|
||||||
Fail() {
|
case $1 in
|
||||||
echo -e "${RED}command not entered, exitting${NOCOL}"
|
install)
|
||||||
exit 1
|
|
||||||
}
|
|
||||||
|
|
||||||
Exec() {
|
|
||||||
case $1 in
|
|
||||||
install)
|
|
||||||
echo -e "${GREEN}Starting installation of $2${NOCOL}"
|
echo -e "${GREEN}Starting installation of $2${NOCOL}"
|
||||||
sleep 2
|
sleep 2
|
||||||
bash -c "$(curl -fsSL $CODE/$2/install.sh)"
|
bash -c "$(curl -fsSL $CODE/$2/install.sh)"
|
||||||
exit 0;;
|
exit 0;;
|
||||||
setup)
|
setup)
|
||||||
echo -n "Git username: "
|
echo -n "Git username: "
|
||||||
read USER
|
read USER
|
||||||
echo -n "Git password: "
|
echo -n "Git password: "
|
||||||
@@ -29,15 +23,8 @@ Exec() {
|
|||||||
bash -c "$(curl -fsSL $CODE/$2/setup.sh)"
|
bash -c "$(curl -fsSL $CODE/$2/setup.sh)"
|
||||||
rm -f /tmp/$1.tmp
|
rm -f /tmp/$1.tmp
|
||||||
exit 0;;
|
exit 0;;
|
||||||
*)
|
*)
|
||||||
echo -r "${RED}application name not entered, exitting${NOCOL}"
|
echo -r "${RED}application name not entered, exitting${NOCOL}"
|
||||||
exit 1;;
|
exit 1;;
|
||||||
esac
|
esac
|
||||||
}
|
exit 0
|
||||||
|
|
||||||
if [[ -z $1 ]]
|
|
||||||
then
|
|
||||||
Fail
|
|
||||||
else
|
|
||||||
Exec $1
|
|
||||||
fi
|
|
Reference in New Issue
Block a user