This commit is contained in:
Marc Beninca 2024-11-13 13:08:09 +01:00
parent 3b062767c3
commit c4e9f06cb2
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -14,7 +14,9 @@ read_secret() {
local prompt="${1}" local prompt="${1}"
local secret local secret
printf "%s" "${prompt}" 1>&2 printf "%s" "${prompt}" 1>&2
read -r -s secret stty -echo
read -r secret
stty echo
echo >&2 echo >&2
echo "${secret}" echo "${secret}"
unset secret unset secret