main #8

Closed
limepotato wants to merge 183 commits from main into blog-drafts
Showing only changes of commit f9f2bbf978 - Show all commits

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