larbs

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 73786da04206f7a9686ea1ca5a921c06cda38af7
parent 7606c120a63b87afa76b7446792ef1ef5cfb047d
Author: Luke Smith <luke@lukesmith.xyz>
Date:   Fri, 15 Mar 2019 16:34:02 -0400

avoid multiple additions of color/pac

Diffstat:
Mlarbs.sh | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/larbs.sh b/larbs.sh @@ -182,7 +182,8 @@ pacman --noconfirm --needed -S base-devel git >/dev/null 2>&1 newperms "%wheel ALL=(ALL) NOPASSWD: ALL" # Make pacman and yay colorful and adds eye candy on the progress bar because why not. -sed -i "s/^#Color/Color/g;/#VerbosePkgLists/a ILoveCandy" /etc/pacman.conf +grep "^Color" /etc/pacman.conf >/dev/null || sed -i "s/^#Color/Color/" /etc/pacman.conf +grep "ILoveCandy" /etc/pacman.conf >/dev/null || sed -i "/#VerbosePkgLists/a ILoveCandy" /etc/pacman.conf # Use all cores for compilation. sed -i "s/-j2/-j$(nproc)/;s/^#MAKEFLAGS/MAKEFLAGS/" /etc/makepkg.conf