main #8
1 changed files with 5 additions and 2 deletions
7
build.sh
7
build.sh
|
@ -19,6 +19,7 @@ EXITING="${RED}exiting...${RESET}"
|
||||||
NO_CHOICE="${RED}no choice given, exiting...${RESET}"
|
NO_CHOICE="${RED}no choice given, exiting...${RESET}"
|
||||||
BUILD_CANCELLED="${YELLOW}canelling build...${RESET}"
|
BUILD_CANCELLED="${YELLOW}canelling build...${RESET}"
|
||||||
BUILDING_BACK="${PURPLE}building backend!${RESET}"
|
BUILDING_BACK="${PURPLE}building backend!${RESET}"
|
||||||
|
IMPREGNATING="${PURPLE}preparing backend...${RESET}"
|
||||||
BUILDING_FRONT="${PURPLE}building static site!${RESET}"
|
BUILDING_FRONT="${PURPLE}building static site!${RESET}"
|
||||||
FIRST_TIME_Q="${CYAN}first time building backend? ${GREEN}Yes(y) ${RESET}/ ${RED}No(n) ${RESET}/ ${YELLOW}Cancel(c)${RESET}:- "
|
FIRST_TIME_Q="${CYAN}first time building backend? ${GREEN}Yes(y) ${RESET}/ ${RED}No(n) ${RESET}/ ${YELLOW}Cancel(c)${RESET}:- "
|
||||||
|
|
||||||
|
@ -33,11 +34,12 @@ if [ "$choice" = "y" ]; then
|
||||||
if [ "$choice" = "y" ]; then
|
if [ "$choice" = "y" ]; then
|
||||||
read -p "$(echo -e ${FIRST_TIME_Q})" choice
|
read -p "$(echo -e ${FIRST_TIME_Q})" choice
|
||||||
if [ "$choice" = "y" ]; then
|
if [ "$choice" = "y" ]; then
|
||||||
echo -e "${BUILDING_BACK}}"
|
echo -e "${IMPREGNATING}}"
|
||||||
cd backend
|
cd backend
|
||||||
mkdir build
|
mkdir build
|
||||||
mkdir build/libs
|
mkdir build/libs
|
||||||
cp application.yaml build/libs
|
cp application.yaml build/libs
|
||||||
|
cd ../
|
||||||
elif [ "$choice" = "n" ]; then
|
elif [ "$choice" = "n" ]; then
|
||||||
echo -e "${EXITING}"
|
echo -e "${EXITING}"
|
||||||
elif [ "$choice" = "c" ]; then
|
elif [ "$choice" = "c" ]; then
|
||||||
|
@ -62,11 +64,12 @@ elif [ "$choice" = "n" ]; then
|
||||||
if [ "$choice" = "y" ]; then
|
if [ "$choice" = "y" ]; then
|
||||||
read -p "$(echo -e ${FIRST_TIME_Q})" choice
|
read -p "$(echo -e ${FIRST_TIME_Q})" choice
|
||||||
if [ "$choice" = "y" ]; then
|
if [ "$choice" = "y" ]; then
|
||||||
echo -e "${BUILDING_BACK}}"
|
echo -e "${IMPREGNATING}}"
|
||||||
cd backend
|
cd backend
|
||||||
mkdir build
|
mkdir build
|
||||||
mkdir build/libs
|
mkdir build/libs
|
||||||
cp application.yaml build/libs
|
cp application.yaml build/libs
|
||||||
|
cd ../
|
||||||
elif [ "$choice" = "n" ]; then
|
elif [ "$choice" = "n" ]; then
|
||||||
echo -e "${EXITING}"
|
echo -e "${EXITING}"
|
||||||
elif [ "$choice" = "c" ]; then
|
elif [ "$choice" = "c" ]; then
|
||||||
|
|
Loading…
Reference in a new issue