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