-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathboot.sh
More file actions
executable file
Β·46 lines (37 loc) Β· 2.32 KB
/
Copy pathboot.sh
File metadata and controls
executable file
Β·46 lines (37 loc) Β· 2.32 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
40
41
42
43
44
45
46
#!/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
OMADEB_REPO="${OMADEB_REPO:-omakasui/omadeb}"
# Use custom brand if specified, otherwise use default
OMADEB_BRAND="${OMADEB_BRAND:-Omadeb}"
echo -e "\nCloning $OMADEB_BRAND from: https://github.com/${OMADEB_REPO}.git"
rm -rf ~/.local/share/omadeb
git clone https://github.com/$OMADEB_REPO.git ~/.local/share/omadeb >/dev/null
# Use custom branch if instructed, otherwise default to main
OMADEB_REF="${OMADEB_REF:-main}"
echo -e "\e[32mUsing branch: $OMADEB_REF\e[0m"
cd ~/.local/share/omadeb
git fetch origin "${OMADEB_REF}" && git checkout "${OMADEB_REF}"
cd -
# Set channel based on branch (dev branch uses dev channel, everything else uses stable)
if [[ $OMADEB_REF == "dev" ]]; then
export OMADEB_CHANNEL=dev
else
export OMADEB_CHANNEL=stable
fi
echo -e "\nInstallation starting..."
source ~/.local/share/omadeb/install.sh