mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2025-02-23 01:19:13 +00:00
fix repo check
This commit is contained in:
parent
96876d673a
commit
c8aee41666
|
@ -3,13 +3,13 @@
|
||||||
. ../../common-script.sh
|
. ../../common-script.sh
|
||||||
|
|
||||||
setUpRepos() {
|
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}"
|
printf "%b\n" "${CYAN}Adding jupiter-staging to pacman repositories...${RC}"
|
||||||
echo "[jupiter-staging]" | "$ESCALATION_TOOL" tee -a /etc/pacman.conf
|
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 "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
|
echo "SigLevel = Never" | "$ESCALATION_TOOL" tee -a /etc/pacman.conf
|
||||||
fi
|
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}"
|
printf "%b\n" "${CYAN}Adding holo-staging to pacman repositories...${RC}"
|
||||||
echo "[holo-staging]" | "$ESCALATION_TOOL" tee -a /etc/pacman.conf
|
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
|
echo "Server = https://steamdeck-packages.steamos.cloud/archlinux-mirror/\$repo/os/\$arch" | "$ESCALATION_TOOL" tee -a /etc/pacman.conf
|
||||||
|
|
Loading…
Reference in New Issue
Block a user