cleanup paralleldownloads regex
because the pattern ends with ".*" the "$" is useless. also made the sed for uncommenting "Colors" slightly shorter by using "/<pattern>$/s/^#//" instead of "s/^#<pattern>$/<pattern>/"
This commit is contained in:
parent
f93c3c26d6
commit
1bd9a35079
1 changed files with 1 additions and 1 deletions
2
larbs.sh
2
larbs.sh
|
@ -199,7 +199,7 @@ newperms "%wheel ALL=(ALL) NOPASSWD: ALL"
|
|||
|
||||
# Make pacman colorful, concurrent downloads and Pacman eye-candy.
|
||||
grep -q "ILoveCandy" /etc/pacman.conf || sed -i "/#VerbosePkgLists/a ILoveCandy" /etc/pacman.conf
|
||||
sed -i "s/^#ParallelDownloads.*$/ParallelDownloads = 5/;s/^#Color$/Color/" /etc/pacman.conf
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue