make paralleldownloads pattern more specific

instead of uncommenting all lines containing 'ParallelDownloads', do it on ones starting with '#ParallelDownloads'
This commit is contained in:
i-c-u-p 2022-04-28 09:30:39 +00:00
parent 486259f99c
commit 4901644a3e
No known key found for this signature in database
GPG Key ID: ABB80C12170FC0D1
2 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@ timedatectl set-ntp true
pacman -S --noconfirm archlinux-keyring #update keyrings to latest to prevent packages failing to install
pacman -S --noconfirm --needed pacman-contrib terminus-font
setfont ter-v22b
sed -i '/ParallelDownloads/s/^#//' /etc/pacman.conf
sed -i '/^#ParallelDownloads/s/^.//' /etc/pacman.conf
pacman -S --noconfirm --needed reflector rsync grub
cp /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.backup
echo "

View File

@ -60,7 +60,7 @@ sed -i '/%wheel ALL=(ALL) NOPASSWD: ALL/s/^# //' /etc/sudoers
sed -i '/%wheel ALL=(ALL:ALL) NOPASSWD: ALL/s/^# //' /etc/sudoers
#Add parallel downloading
sed -i '/ParallelDownloads/s/^#//' /etc/pacman.conf
sed -i '/^#ParallelDownloads/s/^.//' /etc/pacman.conf
#Enable multilib
sed -i "/\[multilib\]/,/Include/"'s/^#//' /etc/pacman.conf