-
Notifications
You must be signed in to change notification settings - Fork 13
/
install.sh
executable file
·44 lines (32 loc) · 2.06 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
#!/usr/bin/env bash
#
# ░█░█░█░█░█▀█░█▀█░█▀▀░█░░░▀█▀░█▄█░█▀█░█▀█░▀░█▀▀░░░█▀▄░█▀█░▀█▀░█▀▀░▀█▀░█░░░█▀▀░█▀▀
# ░█▀▄░█▀█░█▀█░█░█░█▀▀░█░░░░█░░█░█░█▀█░█░█░░░▀▀█░░░█░█░█░█░░█░░█▀▀░░█░░█░░░█▀▀░▀▀█
# ░▀░▀░▀░▀░▀░▀░▀░▀░▀▀▀░▀▀▀░▀▀▀░▀░▀░▀░▀░▀░▀░░░▀▀▀░░░▀▀░░▀▀▀░░▀░░▀░░░▀▀▀░▀▀▀░▀▀▀░▀▀▀
# toilet -f pagga
. ./scripts/utils/installer-helper.sh SETUP
if [ ! "$?" -eq 0 ]; then
echo "Couldn't source required files. Exiting."
exit
fi
[ -f "$CONFIG_FILE" ] || touch -f "$CONFIG_FILE"
# Delete existing log file and log output of script
[[ -f "$LOG_FILE" ]] && rm -f "$LOG_FILE"
exec > >(tee -a "$LOG_FILE") 2>&1
# ░▀█▀░█▀█░█▀▀░▀█▀░█▀█░█░░░█░░░█▀█░▀█▀░▀█▀░█▀█░█▀█░░░█▀▀░▀█▀░█▀▀░█▀█░█▀▀
# ░░█░░█░█░▀▀█░░█░░█▀█░█░░░█░░░█▀█░░█░░░█░░█░█░█░█░░░▀▀█░░█░░█▀▀░█▀▀░▀▀█
# ░▀▀▀░▀░▀░▀▀▀░░▀░░▀░▀░▀▀▀░▀▀▀░▀░▀░░▀░░▀▀▀░▀▀▀░▀░▀░░░▀▀▀░░▀░░▀▀▀░▀░░░▀▀▀
logo
# Install shared first in case specific overrides it
shared_install
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
message "Linux detected..."
linux_install
elif [[ "$OSTYPE" == "darwin"* ]]; then
message "Mac detected..."
mac_install
elif [[ "$OSTYPE" == "win32" ]]; then
error_message "Run the install.bat script instead..."
else
error_message "unsupported os... exiting"
fi