From b3c1ab9cbae88721e56d2e4d91fee4e5b836c53b Mon Sep 17 00:00:00 2001 From: i-c-u-p <96894903+i-c-u-p@users.noreply.github.com> Date: Fri, 20 May 2022 08:21:02 +0000 Subject: [PATCH] fix paralleldownloads and shorten seds via -E since 231f3b2, the paralleldownloads sed doesn't remove it's comment --- larbs.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/larbs.sh b/larbs.sh index 18622ae..9c0f74d 100755 --- a/larbs.sh +++ b/larbs.sh @@ -129,7 +129,7 @@ installationloop() { \ aurinstalled=$(pacman -Qqm) while IFS=, read -r tag program comment; do n=$((n+1)) - echo "$comment" | grep -q "^\".*\"$" && comment="$(echo "$comment" | sed "s/\(^\"\|\"$\)//g")" + echo "$comment" | grep -q "^\".*\"$" && comment="$(echo "$comment" | sed -E "s/(^\"|\"$)//g")" case "$tag" in "A") aurinstall "$program" "$comment" ;; "G") gitmakeinstall "$program" "$comment" ;; @@ -199,7 +199,7 @@ newperms "%wheel ALL=(ALL) NOPASSWD: ALL" # Make pacman colorful, concurrent downloads and Pacman eye-candy. grep -q "ILoveCandy" /etc/pacman.conf || sed -i "/#VerbosePkgLists/a ILoveCandy" /etc/pacman.conf -sed -i "/^#ParallelDownloads/s/=.*/= 5/;s/^#Color$/Color/" /etc/pacman.conf +sed -Ei "s/^#(ParallelDownloads).*/\1 = 5/;/^#Color$/s/#//" /etc/pacman.conf # Use all cores for compilation. sed -i "s/-j2/-j$(nproc)/;/^#MAKEFLAGS/s/^#//" /etc/makepkg.conf