From 4901644a3e86114a1f89da212a780126342873d1 Mon Sep 17 00:00:00 2001 From: i-c-u-p <96894903+i-c-u-p@users.noreply.github.com> Date: Thu, 28 Apr 2022 09:30:39 +0000 Subject: [PATCH] make paralleldownloads pattern more specific instead of uncommenting all lines containing 'ParallelDownloads', do it on ones starting with '#ParallelDownloads' --- scripts/0-preinstall.sh | 2 +- scripts/1-setup.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/0-preinstall.sh b/scripts/0-preinstall.sh index e8c73b6..a53e09c 100755 --- a/scripts/0-preinstall.sh +++ b/scripts/0-preinstall.sh @@ -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 " diff --git a/scripts/1-setup.sh b/scripts/1-setup.sh index 8e30e58..e310cb3 100755 --- a/scripts/1-setup.sh +++ b/scripts/1-setup.sh @@ -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