diff options
Diffstat (limited to 'archSetup.sh')
-rwxr-xr-x | archSetup.sh | 11 |
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 |