Use -r with read command
This commit is contained in:
parent
a4c3a2cf83
commit
8a4b52d1b5
|
@ -73,7 +73,7 @@ ask_ca_password() {
|
||||||
trap 'unset CA_PASSWORD' 0
|
trap 'unset CA_PASSWORD' 0
|
||||||
stty -echo
|
stty -echo
|
||||||
printf "Password for CA key : "
|
printf "Password for CA key : "
|
||||||
read CA_PASSWORD
|
read -r CA_PASSWORD
|
||||||
stty echo
|
stty echo
|
||||||
printf "\n"
|
printf "\n"
|
||||||
[ "${CA_PASSWORD}" != "" ] || ask_ca_password "${attempt}"
|
[ "${CA_PASSWORD}" != "" ] || ask_ca_password "${attempt}"
|
||||||
|
@ -151,7 +151,7 @@ create() {
|
||||||
trap 'unset PASSWORD' 0
|
trap 'unset PASSWORD' 0
|
||||||
stty -echo
|
stty -echo
|
||||||
printf "Password for user key : "
|
printf "Password for user key : "
|
||||||
read PASSWORD
|
read -r PASSWORD
|
||||||
stty echo
|
stty echo
|
||||||
printf "\n"
|
printf "\n"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue