removed unused functions
This commit is contained in:
15
deploy.sh
15
deploy.sh
@@ -6,12 +6,6 @@ GREEN='\033[0;32m'
|
|||||||
RED='\033[0;31m'
|
RED='\033[0;31m'
|
||||||
NOCOL='\033[0m'
|
NOCOL='\033[0m'
|
||||||
|
|
||||||
Fail() {
|
|
||||||
echo -e "${RED}command not entered, exitting${NOCOL}"
|
|
||||||
exit 1
|
|
||||||
}
|
|
||||||
|
|
||||||
Exec() {
|
|
||||||
case $1 in
|
case $1 in
|
||||||
install)
|
install)
|
||||||
echo -e "${GREEN}Starting installation of $2${NOCOL}"
|
echo -e "${GREEN}Starting installation of $2${NOCOL}"
|
||||||
@@ -33,11 +27,4 @@ Exec() {
|
|||||||
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