-
-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathboot.sh
More file actions
executable file
·39 lines (31 loc) · 2.42 KB
/
boot.sh
File metadata and controls
executable file
·39 lines (31 loc) · 2.42 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
35
36
37
38
39
#!/bin/bash
# Set install mode to online since boot.sh is used for curl installations
export OMADORA_ONLINE_INSTALL=true
ansi_art='
▄██████▄ ▄▄▄▄███▄▄▄▄ ▄████████ ████████▄ ▄██████▄ ▄████████ ▄████████
███ ███ ▄██▀▀▀███▀▀▀██▄ ███ ███ ███ ▀███ ███ ███ ███ ███ ███ ███
███ ███ ███ ███ ███ ███ ███ ███ ███ ███ ███ ███ ███ ███ ███
███ ███ ███ ███ ███ ███ ███ ███ ███ ███ ███ ▄███▄▄▄▄██▀ ███ ███
███ ███ ███ ███ ███ ▀███████████ ███ ███ ███ ███ ▀▀███▀▀▀▀▀ ▀███████████
███ ███ ███ ███ ███ ███ ███ ███ ███ ███ ███ ▀███████████ ███ ███
███ ███ ███ ███ ███ ███ ███ ███ ▄███ ███ ███ ███ ███ ███ ███
▀██████▀ ▀█ ███ █▀ ███ █▀ ████████▀ ▀██████▀ ███ ███ ███ █▀
███ ███'
clear
echo -e "\n$ansi_art\n"
sudo dnf install -y git
# Use custom repo if specified, otherwise default
OMADORA_REPO="${OMADORA_REPO:-elpritchos/omadora}"
echo -e "\nCloning Omadora from: https://github.com/${OMADORA_REPO}.git"
rm -rf ~/.local/share/omadora/
git clone "https://github.com/${OMADORA_REPO}.git" ~/.local/share/omadora >/dev/null
# Use custom branch if instructed, otherwise default to master
OMADORA_REF="${OMADORA_REF:-master}"
if [[ $OMADORA_REF != "master" ]]; then
echo -e "\e[32mUsing branch: $OMADORA_REF\e[0m"
cd ~/.local/share/omadora
git fetch origin "${OMADORA_REF}" && git checkout "${OMADORA_REF}"
cd -
fi
echo -e "\nInstallation starting..."
source ~/.local/share/omadora/install.sh