Skip to content

Commit e3aae13

Browse files
Update install.sh
1 parent 2d91e40 commit e3aae13

1 file changed

Lines changed: 11 additions & 12 deletions

File tree

install.sh

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,32 +2,31 @@
22

33
set -e
44

5-
echo "==> Installing AMBCT..."
6-
5+
REPO_URL="https://blitzpythoner.github.io/AMBCT-Linux-Repo"
6+
KEY_URL="$REPO_URL/public.key"
77
KEYRING="/usr/share/keyrings/ambct.gpg"
88
SOURCE_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
1213
if [[ "$EUID" -ne 0 ]]; then
13-
echo "Please run this script as root (sudo)."
14+
echo "Run this script with sudo."
1415
exit 1
1516
fi
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

2121
chmod 644 "$KEYRING"
2222

23-
echo "==> Adding repository..."
24-
23+
echo "==> Adding APT repository..."
2524
echo "deb [signed-by=$KEYRING] $REPO_URL stable main" > "$SOURCE_LIST"
2625

27-
echo "==> Updating package lists..."
26+
echo "==> Updating package list..."
2827
apt update
2928

3029
echo "==> Installing ambct..."
3130
apt install -y ambct
3231

33-
echo "==> Done."
32+
echo "==> Installation complete."

0 commit comments

Comments
 (0)