fix invalid sed expressions

This commit is contained in:
i-c-u-p 2022-04-25 07:30:04 +00:00
parent 87fb66103f
commit f0bcb96d97
No known key found for this signature in database
GPG Key ID: ABB80C12170FC0D1
2 changed files with 5 additions and 5 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 '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 "

View File

@ -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