From 527e71124bc143a561a6a42b1164b92170e04c33 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 09:55:43 +0000 Subject: [PATCH] fix typo in last commit --- easy-arch.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/easy-arch.sh b/easy-arch.sh index 70288c3..64c320a 100755 --- a/easy-arch.sh +++ b/easy-arch.sh @@ -373,7 +373,7 @@ echo "root:$rootpass" | arch-chroot /mnt chpasswd if [ -n "$username" ]; then print "Adding the user $username to the system with root privilege." arch-chroot /mnt useradd -m -G wheel -s /bin/bash "$username" - sed -i '%wheel ALL=(ALL) ALL/s/^# //' /mnt/etc/sudoers + sed -i '/%wheel ALL=(ALL) ALL/s/^# //' /mnt/etc/sudoers print "Setting user password for $username." echo "$username:$userpass" | arch-chroot /mnt chpasswd fi