mirror of
https://github.com/classy-giraffe/easy-arch.git
synced 2025-11-17 19:40:55 +00:00
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:
parent
c990c0f9a0
commit
2fb11dbfb1
1 changed files with 1 additions and 1 deletions
|
|
@ -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."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue