From 2fb11dbfb1db052354a98466d5aa1cc0042352aa Mon Sep 17 00:00:00 2001 From: i-c-u-p <96894903+i-c-u-p@users.noreply.github.com> Date: Thu, 28 Apr 2022 00:49:26 +0000 Subject: [PATCH] fix pacman sed sed expressions using the a, c or i commands cant be separated with ; and require a newline or -e to do so instead. since the ILoveCandy is the only expression in the sequence that uses one of those commands i just moved it to the end which seemed to fix the problem. also shortened the parallel downloads sed. chaining expressions is addressed in section 3.8.1 of the gnu sed manual --- easy-arch.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/easy-arch.sh b/easy-arch.sh index 0f3b9d6..8fc8541 100755 --- a/easy-arch.sh +++ b/easy-arch.sh @@ -430,7 +430,7 @@ EOF # Pacman eye-candy features. print "Enabling colours, animations, and parallel in pacman." -sed -i '/#Color/a ILoveCandy;s/^#ParallelDownloads.*/ParallelDownloads = 10/' /mnt/etc/pacman.conf +sed -i '/^#ParallelDownloads/s/=.*/= 10/;/#Color/a ILoveCandy' /mnt/etc/pacman.conf # Enabling various services. print "Enabling Reflector, automatic snapshots, BTRFS scrubbing and systemd-oomd."