shorten sed expr for uncommenting makeflags
This commit is contained in:
parent
1bd9a35079
commit
625164460b
2
larbs.sh
2
larbs.sh
@ -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
|
||||
|
||||
# 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."
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user