fix repo check

This commit is contained in:
Adam Perkowski 2024-09-28 13:41:52 +02:00
parent 96876d673a
commit c8aee41666
No known key found for this signature in database
GPG Key ID: 7CBDB58ECF1D3478

View File

@ -3,13 +3,13 @@
. ../../common-script.sh
setUpRepos() {
if ! grep -q "^\s*$$jupiter-staging$$" /etc/pacman.conf; then
if ! grep -q "^\s*\[jupiter-staging\]" /etc/pacman.conf; then
printf "%b\n" "${CYAN}Adding jupiter-staging to pacman repositories...${RC}"
echo "[jupiter-staging]" | "$ESCALATION_TOOL" tee -a /etc/pacman.conf
echo "Server = https://steamdeck-packages.steamos.cloud/archlinux-mirror/\$repo/os/\$arch" | "$ESCALATION_TOOL" tee -a /etc/pacman.conf
echo "SigLevel = Never" | "$ESCALATION_TOOL" tee -a /etc/pacman.conf
fi
if ! grep -q "^\s*$$holo-staging$$" /etc/pacman.conf; then
if ! grep -q "^\s*\[holo-staging\]" /etc/pacman.conf; then
printf "%b\n" "${CYAN}Adding holo-staging to pacman repositories...${RC}"
echo "[holo-staging]" | "$ESCALATION_TOOL" tee -a /etc/pacman.conf
echo "Server = https://steamdeck-packages.steamos.cloud/archlinux-mirror/\$repo/os/\$arch" | "$ESCALATION_TOOL" tee -a /etc/pacman.conf