From bcfafb586bfc767a5cbc3d9f877cef9e7375710b Mon Sep 17 00:00:00 2001 From: lub Date: Fri, 6 Jul 2018 22:28:22 +0200 Subject: [PATCH] remove linebreak before password input that makes it more consistent with other programs like su, sudo, passwd... --- setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.sh b/setup.sh index 613339c..8f538cf 100755 --- a/setup.sh +++ b/setup.sh @@ -9,7 +9,7 @@ apt-get -y install mdadm btrfs-tools "./hardware/${1}/parted.sh" "$2" # encrypt and unlock root device -echo 'Enter luks password: ' +echo -n 'Enter luks password: ' read -s md0pwd echo -n $md0pwd | cryptsetup -q luksFormat /dev/md0 echo -n $md0pwd | cryptsetup open --type luks /dev/md0 md0-unlocked