From 8a4b52d1b52dee6243f47fb81d3139635d565663 Mon Sep 17 00:00:00 2001 From: Victor LABORIE Date: Wed, 24 Jan 2018 17:29:55 +0100 Subject: [PATCH] Use -r with read command --- shellpki.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shellpki.sh b/shellpki.sh index 6112c06..fb07d2f 100755 --- a/shellpki.sh +++ b/shellpki.sh @@ -73,7 +73,7 @@ ask_ca_password() { trap 'unset CA_PASSWORD' 0 stty -echo printf "Password for CA key : " - read CA_PASSWORD + read -r CA_PASSWORD stty echo printf "\n" [ "${CA_PASSWORD}" != "" ] || ask_ca_password "${attempt}" @@ -151,7 +151,7 @@ create() { trap 'unset PASSWORD' 0 stty -echo printf "Password for user key : " - read PASSWORD + read -r PASSWORD stty echo printf "\n" fi