From 61617beb600f217401c6f54e956239833a90467d Mon Sep 17 00:00:00 2001 From: Tommaso Chiti Date: Tue, 28 Sep 2021 20:44:02 +0200 Subject: [PATCH] Update easy-arch.sh --- easy-arch.sh | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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."