This commit is contained in:
nelle 2024-09-16 01:36:07 -06:00
parent 150d329086
commit f9f2bbf978

View file

@ -19,6 +19,7 @@ EXITING="${RED}exiting...${RESET}"
NO_CHOICE="${RED}no choice given, exiting...${RESET}"
BUILD_CANCELLED="${YELLOW}canelling build...${RESET}"
BUILDING_BACK="${PURPLE}building backend!${RESET}"
IMPREGNATING="${PURPLE}preparing backend...${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}:- "
@ -33,11 +34,12 @@ if [ "$choice" = "y" ]; then
if [ "$choice" = "y" ]; then
read -p "$(echo -e ${FIRST_TIME_Q})" choice
if [ "$choice" = "y" ]; then
echo -e "${BUILDING_BACK}}"
echo -e "${IMPREGNATING}}"
cd backend
mkdir build
mkdir build/libs
cp application.yaml build/libs
cd ../
elif [ "$choice" = "n" ]; then
echo -e "${EXITING}"
elif [ "$choice" = "c" ]; then
@ -62,11 +64,12 @@ elif [ "$choice" = "n" ]; then
if [ "$choice" = "y" ]; then
read -p "$(echo -e ${FIRST_TIME_Q})" choice
if [ "$choice" = "y" ]; then
echo -e "${BUILDING_BACK}}"
echo -e "${IMPREGNATING}}"
cd backend
mkdir build
mkdir build/libs
cp application.yaml build/libs
cd ../
elif [ "$choice" = "n" ]; then
echo -e "${EXITING}"
elif [ "$choice" = "c" ]; then