shorten sed for adding ILoveCandy

sed's "a" command can be used for this (ty LARBS :P)
This commit is contained in:
i-c-u-p 2022-04-27 10:34:56 +00:00
parent dd065fb340
commit c990c0f9a0
No known key found for this signature in database
GPG key ID: ABB80C12170FC0D1

View file

@ -430,7 +430,7 @@ EOF
# Pacman eye-candy features. # Pacman eye-candy features.
print "Enabling colours, animations, and parallel in pacman." print "Enabling colours, animations, and parallel in pacman."
sed -i 's/#Color/Color\nILoveCandy/;s/^#ParallelDownloads.*/ParallelDownloads = 10/' /mnt/etc/pacman.conf sed -i '/#Color/a ILoveCandy;s/^#ParallelDownloads.*/ParallelDownloads = 10/' /mnt/etc/pacman.conf
# Enabling various services. # Enabling various services.
print "Enabling Reflector, automatic snapshots, BTRFS scrubbing and systemd-oomd." print "Enabling Reflector, automatic snapshots, BTRFS scrubbing and systemd-oomd."