From e8240dc948e37941d812c9de095527751dfdb4dd Mon Sep 17 00:00:00 2001 From: InigoGutierrez Date: Mon, 10 Oct 2022 22:21:47 +0200 Subject: Enable multilib repos on Arch install. --- archSetup.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'archSetup.sh') 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 -- cgit v1.2.1