File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33set -e
44
5- echo " ==> Installing AMBCT... "
6-
5+ REPO_URL= " https://blitzpythoner.github.io/AMBCT-Linux-Repo "
6+ KEY_URL= " $REPO_URL /public.key "
77KEYRING=" /usr/share/keyrings/ambct.gpg"
88SOURCE_LIST=" /etc/apt/sources.list.d/ambct.list"
9- REPO_URL=" https://blitzpythoner.github.io/AMBCT-Linux-Repo"
109
11- # Check for root
10+ echo " ==> Installing AMBCT..."
11+
12+ # Root check
1213if [[ " $EUID " -ne 0 ]]; then
13- echo " Please run this script as root ( sudo) ."
14+ echo " Run this script with sudo."
1415 exit 1
1516fi
1617
17- echo " ==> Installing GPG key..."
18-
19- curl -fsSL " $REPO_URL /public.key" | gpg --dearmor -o " $KEYRING "
18+ echo " ==> Downloading and installing GPG key..."
19+ curl -fsSL " $KEY_URL " | gpg --dearmor -o " $KEYRING "
2020
2121chmod 644 " $KEYRING "
2222
23- echo " ==> Adding repository..."
24-
23+ echo " ==> Adding APT repository..."
2524echo " deb [signed-by=$KEYRING ] $REPO_URL stable main" > " $SOURCE_LIST "
2625
27- echo " ==> Updating package lists ..."
26+ echo " ==> Updating package list ..."
2827apt update
2928
3029echo " ==> Installing ambct..."
3130apt install -y ambct
3231
33- echo " ==> Done ."
32+ echo " ==> Installation complete ."
You can’t perform that action at this time.
0 commit comments