shorten paralleldownloads sed

This commit is contained in:
i-c-u-p 2022-04-28 01:03:30 +00:00
parent 0140eebc63
commit 231f3b21f5
No known key found for this signature in database
GPG Key ID: ABB80C12170FC0D1

View File

@ -199,7 +199,7 @@ newperms "%wheel ALL=(ALL) NOPASSWD: ALL"
# Make pacman colorful, concurrent downloads and Pacman eye-candy. # Make pacman colorful, concurrent downloads and Pacman eye-candy.
grep -q "ILoveCandy" /etc/pacman.conf || sed -i "/#VerbosePkgLists/a ILoveCandy" /etc/pacman.conf grep -q "ILoveCandy" /etc/pacman.conf || sed -i "/#VerbosePkgLists/a ILoveCandy" /etc/pacman.conf
sed -i "s/^#ParallelDownloads.*/ParallelDownloads = 5/;/Color$/s/^#//" /etc/pacman.conf sed -i "/^#ParallelDownloads/s/=.*/= 5/;/Color$/s/^#//" /etc/pacman.conf
# Use all cores for compilation. # Use all cores for compilation.
sed -i "s/-j2/-j$(nproc)/;/MAKEFLAGS/s/^#//" /etc/makepkg.conf sed -i "s/-j2/-j$(nproc)/;/MAKEFLAGS/s/^#//" /etc/makepkg.conf