From 303abe86f9bf14e29c965f7999e2218cc36f5577 Mon Sep 17 00:00:00 2001 From: Tommaso Chiti Date: Fri, 27 May 2022 11:17:55 +0200 Subject: [PATCH] Print instead of echo. --- easy-arch.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/easy-arch.sh b/easy-arch.sh index 1f3ad06..c7d3877 100755 --- a/easy-arch.sh +++ b/easy-arch.sh @@ -141,7 +141,7 @@ userpass_selector () { fi read -r -s -p "Insert a user password for $username (you're not going to see the password): " userpass if [ -z "$userpass" ]; then - incEcho "\nYou need to enter a password for $username." + incEcho "You need to enter a password for $username." return 1 fi echo @@ -158,7 +158,7 @@ userpass_selector () { rootpass_selector () { read -r -s -p "Insert a user password for the root user (you're not going to see it): " rootpass if [ -z "$rootpass" ]; then - incEcho "\nYou need to enter a root password." + incEcho "You need to enter a root password." return 1 fi echo @@ -302,7 +302,7 @@ mkfs.fat -F 32 $ESP &>/dev/null # Creating a LUKS Container for the root partition. print "Creating LUKS Container for the root partition." -echo -n "$password" | cryptsetup luksFormat "$CRYPTROOT" -d - +echo -n "$password" | cryptsetup luksFormat "$CRYPTROOT" -d - &>/dev/null echo -n "$password" | cryptsetup open "$CRYPTROOT" cryptroot -d - BTRFS="/dev/mapper/cryptroot" @@ -315,7 +315,7 @@ mount $BTRFS /mnt print "Creating BTRFS subvolumes." subvols=(snapshots var_pkgs var_log home root srv) for subvol in '' "${subvols[@]}"; do - btrfs su cr /mnt/@"$subvol" + btrfs su cr /mnt/@"$subvol" &>/dev/null done # Mounting the newly created subvolumes. @@ -381,7 +381,7 @@ sed -i "\,^GRUB_CMDLINE_LINUX=\"\",s,\",&rd.luks.name=$UUID=cryptroot root=$BTRF arch-chroot /mnt /bin/bash -e </dev/null # Setting up clock.