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
This commit is contained in:
i-c-u-p 2022-04-28 00:49:26 +00:00
parent c990c0f9a0
commit 2fb11dbfb1
No known key found for this signature in database
GPG key ID: ABB80C12170FC0D1

View file

@ -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."