From 489c9a382c9db0a53c1445f3c81e14fb884d905a Mon Sep 17 00:00:00 2001 From: suiljex Date: Sun, 19 Dec 2021 17:07:00 +0700 Subject: [PATCH] Fix ParallelDownloads Change sed regex to '^#ParallelDownloads.*$' so it can handle lines like #ParallelDownloads = 5 #ParallelDownloads = 8 #ParallelDownloads --- larbs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/larbs.sh b/larbs.sh index 26c405c..a798942 100644 --- a/larbs.sh +++ b/larbs.sh @@ -198,7 +198,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 "s/^#ParallelDownloads = 8$/ParallelDownloads = 5/;s/^#Color$/Color/" /etc/pacman.conf +sed -i "s/^#ParallelDownloads.*$/ParallelDownloads = 5/;s/^#Color$/Color/" /etc/pacman.conf # Use all cores for compilation. sed -i "s/-j2/-j$(nproc)/;s/^#MAKEFLAGS/MAKEFLAGS/" /etc/makepkg.conf