From f0bcb96d97336a1d70ac99015d4a53c77c4ca130 Mon Sep 17 00:00:00 2001 From: i-c-u-p <96894903+i-c-u-p@users.noreply.github.com> Date: Mon, 25 Apr 2022 07:30:04 +0000 Subject: [PATCH] fix invalid sed expressions --- scripts/0-preinstall.sh | 2 +- scripts/1-setup.sh | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/0-preinstall.sh b/scripts/0-preinstall.sh index cbb9eaf..6b6cc44 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 's/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 0663992..f076031 100755 --- a/scripts/1-setup.sh +++ b/scripts/1-setup.sh @@ -46,7 +46,7 @@ echo " ------------------------------------------------------------------------- Setup Language to US and set locale -------------------------------------------------------------------------" -sed -i 's/en_US.UTF-8 UTF-8/s/^#//' /etc/locale.gen +sed -i '/en_US.UTF-8 UTF-8/s/^#//' /etc/locale.gen locale-gen timedatectl --no-ask-password set-timezone ${TIMEZONE} timedatectl --no-ask-password set-ntp 1 @@ -56,11 +56,11 @@ ln -s /usr/share/zoneinfo/${TIMEZONE} /etc/localtime localectl --no-ask-password set-keymap ${KEYMAP} # Add sudo no password rights -sed -i 's/%wheel ALL=(ALL) NOPASSWD: ALL/s/^# //' /etc/sudoers -sed -i 's/%wheel ALL=(ALL:ALL) NOPASSWD: ALL/s/^# //' /etc/sudoers +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 's/ParallelDownloads/s/^#//' /etc/pacman.conf +sed -i '/ParallelDownloads/s/^#//' /etc/pacman.conf #Enable multilib sed -i "/\[multilib\]/,/Include/"'s/^#//' /etc/pacman.conf