-
Notifications
You must be signed in to change notification settings - Fork 6
/
install.sh
executable file
·60 lines (40 loc) · 2.15 KB
/
install.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
#!/bin/bash
#
# Remember to lint this script with: https://www.shellcheck.net/
#
shopt -s xpg_echo
REPO_FOLDER=~/stonehenge
REPO_URL=https://github.com/druidfi/stonehenge.git
REPO_BRANCH=5.x
GREEN='\033[0;32m'
NC='\033[0m' # No Color
LCYAN='\033[01;36m'
ascii () {
cat << "EOF"
Installing
███████╗████████╗ ██████╗ ███╗ ██╗███████╗██╗ ██╗███████╗███╗ ██╗ ██████╗ ███████╗
██╔════╝╚══██╔══╝██╔═══██╗████╗ ██║██╔════╝██║ ██║██╔════╝████╗ ██║██╔════╝ ██╔════╝
███████╗ ██║ ██║ ██║██╔██╗ ██║█████╗ ███████║█████╗ ██╔██╗ ██║██║ ███╗█████╗
╚════██║ ██║ ██║ ██║██║╚██╗██║██╔══╝ ██╔══██║██╔══╝ ██║╚██╗██║██║ ██║██╔══╝
███████║ ██║ ╚██████╔╝██║ ╚████║███████╗██║ ██║███████╗██║ ╚████║╚██████╔╝███████╗
╚══════╝ ╚═╝ ╚═════╝ ╚═╝ ╚═══╝╚══════╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═══╝ ╚═════╝ ╚══════╝
Multi-project local development environment & toolset on Docker
EOF
}
main () {
clear
echo "${LCYAN}"
ascii
echo "${NC}"
if [ ! -d "$REPO_FOLDER" ] ; then
echo "${GREEN}Clone the Stonehenge repository to ${REPO_FOLDER}${NC}"
git clone -b $REPO_BRANCH $REPO_URL $REPO_FOLDER
fi
cd "$REPO_FOLDER" || exit 1
echo "${GREEN}Update the code...${NC}"
git pull
echo "${GREEN}Start up the Stonehenge...${NC}"
make up
exit 0
}
main