summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzachir <zachir@librem.one>2022-01-25 03:07:02 -0600
committerzachir <zachir@librem.one>2022-01-25 03:07:02 -0600
commit78665a0030be156d431b1bce777eee3eb8e8d7ae (patch)
tree8cf67260415a47b6aecf9077f1738caea7ab1e5a
parent77fc751bc47f164608562c98d9cbc476ee9932a4 (diff)
zirless.sh: fix issue with adding arch repos
-rw-r--r--zirless.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/zirless.sh b/zirless.sh
index 6499d92..b6451d6 100644
--- a/zirless.sh
+++ b/zirless.sh
@@ -75,8 +75,8 @@ newperms() { # Set special sudoers settings for install (or after).
echo "$* #ZIRLESS" >> /etc/sudoers ;}
artixaddarchrepos() { # Adds the Arch repos to Artix Linux (some ZIRLESS packages require it)
- sudo -u "$name" pacman -S --noconfirm artix-archlinux-support archlinux-mirrorlist archlinux-keyring >/dev/null 2>&1 || exit 3
- grep -q '[extra]\|[community]' /etc/pacman.conf || sudo -u "$name" echo "
+ pacman -S --noconfirm artix-archlinux-support archlinux-mirrorlist archlinux-keyring >/dev/null 2>&1 || exit 3
+ grep -q '[extra]\|[community]' /etc/pacman.conf || echo "
[extra]
Include = /etc/pacman.d/mirrorlist-arch