-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathboot.sh
More file actions
executable file
·34 lines (27 loc) · 1.63 KB
/
boot.sh
File metadata and controls
executable file
·34 lines (27 loc) · 1.63 KB
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
#!/bin/bash
set -o pipefail
ascii_art='
██████╗ ███╗ ███╗ █████╗ ███████╗██╗ ██╗ █████╗ ██╗ ██╗
██╔═══██╗████╗ ████║██╔══██╗██╔════╝██║ ██║██╔══██╗╚██╗ ██╔╝
██║ ██║██╔████╔██║███████║███████╗██║ █╗ ██║███████║ ╚████╔╝
██║ ██║██║╚██╔╝██║██╔══██║╚════██║██║███╗██║██╔══██║ ╚██╔╝
╚██████╔╝██║ ╚═╝ ██║██║ ██║███████║╚███╔███╔╝██║ ██║ ██║
╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ ╚══╝╚══╝ ╚═╝ ╚═╝ ╚═╝
'
clear
echo -e "\n$ascii_art\n"
sudo apt-get update >/dev/null
sudo apt-get install -y git >/dev/null
# Use custom repo if specified, otherwise use default
OMASWAY_REPO="${OMASWAY_REPO:-Kasui92/omasway}"
echo -e "\e[32m\nCloning Omasway...\e[0m"
rm -rf ~/.local/share/omasway
git clone https://github.com/$OMASWAY_REPO.git ~/.local/share/omasway >/dev/null
if [[ -n "$OMASWAY_REF" ]]; then
echo -e "\e[32mUsing branch: $OMASWAY_REF\e[0m"
cd ~/.local/share/omasway
git fetch origin "${OMASWAY_REF}" && git checkout "${OMASWAY_REF}"
cd -
fi
echo -e "\nInstallation starting..."
source ~/.local/share/omasway/install.sh