From c83d025896e2448e3a240e348c8ca0dd85f18bc1 Mon Sep 17 00:00:00 2001 From: Bohan Yang Date: Tue, 3 Nov 2020 14:51:51 +0000 Subject: [PATCH] Update --- netboot.sh | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/netboot.sh b/netboot.sh index ed37613..29039b6 100755 --- a/netboot.sh +++ b/netboot.sh @@ -308,9 +308,7 @@ if [ "$skip_account_setup" != true ]; then fi elif command_exists busybox && busybox mkpasswd --help >/dev/null 2>&1; then if [ -z "$password" ]; then - printf '\n%s' 'Password: ' 1>&2 - read -rs password - echo 1>&2 + read -rs -p 'Password: ' password fi password="$(busybox mkpasswd -m sha512 "$password")" elif command_exists python3; then @@ -322,9 +320,7 @@ if [ "$skip_account_setup" != true ]; then else cleartext_password=true if [ -z "$password" ]; then - printf '\n%s' 'Password: ' 1>&2 - read -rs password - echo 1>&2 + read -rs -p 'Password: ' password fi fi