-
Notifications
You must be signed in to change notification settings - Fork 12
/
setup.sh
83 lines (67 loc) · 3.9 KB
/
setup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
#!/bin/sh
#
# Copyright (c) 2023. Selldone® Business OS™
#
# Author: M.Pajuhaan
# Web: https://selldone.com
# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
#
# All rights reserved. In the weave of time, where traditions and innovations intermingle, this content was crafted.
# From the essence of thought, through the corridors of creativity, each word, and sentiment has been molded.
# Not just to exist, but to inspire. Like an artist's stroke or a sculptor's chisel, every nuance is deliberate.
# Our journey is not just about reaching a destination, but about creating a masterpiece.
# Tread carefully, for you're treading on dreams.
#
# Color codes
# shellcheck disable=SC2034
RED='\033[0;31m'
GREEN='\033[0;32m'
# shellcheck disable=SC2034
YELLOW='\033[1;33m' # Yellow with bold
# shellcheck disable=SC2034
BLUE='\033[0;34m'
# shellcheck disable=SC2034
PURPLE='\033[0;35m'
# shellcheck disable=SC2034
CYAN='\033[0;36m'
# shellcheck disable=SC2034
WHITE='\033[1;37m' # White with bold
NC='\033[0m' # No Color
GREEN_BOLD='\033[1;32m'
GREEN_Dim='\033[2;32m'
GREEN_INVERT='\033[7;32m'
echo ""
echo "███████╗███████╗██╗ ██╗ ██████╗ ██████╗ ███╗ ██╗███████╗";
echo "██╔════╝██╔════╝██║ ██║ ██╔══██╗██╔═══██╗████╗ ██║██╔════╝";
echo "███████╗█████╗ ██║ ██║ ██║ ██║██║ ██║██╔██╗ ██║█████╗ ";
echo "╚════██║██╔══╝ ██║ ██║ ██║ ██║██║ ██║██║╚██╗██║██╔══╝ ";
echo "███████║███████╗███████╗███████╗██████╔╝╚██████╔╝██║ ╚████║███████╗";
echo "╚══════╝╚══════╝╚══════╝╚══════╝╚═════╝ ╚═════╝ ╚═╝ ╚═══╝╚══════╝";
echo ""
# setupSubmodules.sh
echo -e "${GREEN}▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆${NC}"
echo -e "${GREEN_BOLD}⬤ Setup Selldone® Business OS™ Storefront Project ⬤ ${NC}"
echo -e "${GREEN_Dim}The #1 operating system for fast-growing companies.${NC}"
echo -e "${GREEN}▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆${NC}"
echo ""
echo -e "${GREEN_INVERT}Checking and adding submodules...${NC}"
echo ""
# Display the status of submodules
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
echo -e "${GREEN_INVERT}Displaying submodule status...${NC}"
git submodule status
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
# Check if tsconfig.json already exists
if [ ! -f "tsconfig.json" ]; then
# Check if _tsconfig.json exists
if [ -f "_tsconfig.json" ]; then
# Rename _tsconfig.json to tsconfig.json
mv _tsconfig.json tsconfig.json
echo "File [_tsconfig.json -> tsconfig.json] renamed successfully."
else
echo "_tsconfig.json does not exist."
fi
else
echo "tsconfig.json already exists."
fi
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"