aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorInigoGutierrez <inigogf.95@gmail.com>2022-10-10 22:21:47 +0200
committerInigoGutierrez <inigogf.95@gmail.com>2022-10-10 22:21:47 +0200
commite8240dc948e37941d812c9de095527751dfdb4dd (patch)
tree56c0c8995857febe82b758ce7bdc4dfc4603aad0
parent5cd8449c399c939f0632a7346ec3f4e9cd3a4f08 (diff)
downloadscripts-e8240dc948e37941d812c9de095527751dfdb4dd.tar.gz
scripts-e8240dc948e37941d812c9de095527751dfdb4dd.zip
Enable multilib repos on Arch install.
-rwxr-xr-xarchSetup.sh11
1 files changed, 9 insertions, 2 deletions
diff --git a/archSetup.sh b/archSetup.sh
index 1148b59..cf737e3 100755
--- a/archSetup.sh
+++ b/archSetup.sh
@@ -85,9 +85,16 @@ fi
sudo echo 'blacklist pcspkr' >/etc/modprobe.d/nobeep.conf
# Pacman config
-echo "Adding color and candy to /etc/pacman.conf"
-grep -q 'ILoveCandy' /etc/pacman.conf ||
+
+if ! grep -q 'ILoveCandy' /etc/pacman.conf; then
+ echo "Adding color and candy to /etc/pacman.conf"
sudo sed -i 's/^#Color.*$/Color\nILoveCandy/' /etc/pacman.conf
+fi
+
+if grep -Eq '^#\[multilib\]' /etc/pacman.conf; then
+ echo "Enabling pacman multilib repositories."
+ sudo sed -i '/^#\[multilib]$/{N;s/#//g}' /etc/pacman.conf
+fi
# Read programs to install from file
installPackageGroup base