Fix UX to show key.

This commit is contained in:
Manuel Amador (Rudd-O) 2017-05-07 15:24:16 +00:00
parent df75696328
commit 29cc97ad7b

View File

@ -95,11 +95,11 @@ case "$1" in
echo "" echo ""
contents=$(cat) contents=$(cat)
elif [ "$echo" == "1" ] ; then elif [ "$echo" == "1" ] ; then
read -p "Enter password for b: " contents >&2 read -p "Enter password for $1: " contents >&2
else else
read -s -p "Enter password for b: " contents >&2 read -s -p "Enter password for $1: " contents >&2
echo echo
read -s -p "Retype password for b: " retypedcontents >&2 read -s -p "Retype password for $1: " retypedcontents >&2
echo echo
if [ "$retypedcontents" != "$contents" ] ; then if [ "$retypedcontents" != "$contents" ] ; then
echo "Error: the entered passwords do not match." echo "Error: the entered passwords do not match."