shorten sed expr for uncommenting makeflags

This commit is contained in:
i-c-u-p 2022-04-27 11:50:19 +00:00
parent 1bd9a35079
commit 625164460b
No known key found for this signature in database
GPG key ID: ABB80C12170FC0D1

View file

@ -202,7 +202,7 @@ grep -q "ILoveCandy" /etc/pacman.conf || sed -i "/#VerbosePkgLists/a ILoveCandy"
sed -i "s/^#ParallelDownloads.*/ParallelDownloads = 5/;/Color$/s/^#//" /etc/pacman.conf sed -i "s/^#ParallelDownloads.*/ParallelDownloads = 5/;/Color$/s/^#//" /etc/pacman.conf
# Use all cores for compilation. # Use all cores for compilation.
sed -i "s/-j2/-j$(nproc)/;s/^#MAKEFLAGS/MAKEFLAGS/" /etc/makepkg.conf sed -i "s/-j2/-j$(nproc)/;/MAKEFLAGS/s/^#//" /etc/makepkg.conf
manualinstall yay || error "Failed to install AUR helper." manualinstall yay || error "Failed to install AUR helper."