diff --git a/easy-arch.sh b/easy-arch.sh index 1ad90e8..5d3c624 100644 --- a/easy-arch.sh +++ b/easy-arch.sh @@ -190,15 +190,12 @@ arch-chroot /mnt /bin/bash -e </dev/null - # Generating a new initramfs. echo "Creating a new initramfs." mkinitcpio -P &>/dev/null - # Snapper configuration umount /.snapshots rm -r /.snapshots @@ -207,7 +204,6 @@ arch-chroot /mnt /bin/bash -e </dev/null @@ -215,7 +211,6 @@ arch-chroot /mnt /bin/bash -e </dev/null - # Adding user with sudo privilege if [ -n "$username" ]; then echo "Adding $username with root privilege." @@ -228,7 +223,7 @@ EOF # Setting root password. echo "Setting root password." arch-chroot /mnt /bin/passwd -[ -n "$username" ] && echo "Setting user password for ${username}." && arch-chroot /mnt /bin/passwd $username +[ -n "$username" ] && echo "Setting user password for ${username}." && arch-chroot /mnt /bin/passwd "$username" # Enabling Reflector timer. echo "Enabling Reflector."