minor tweak...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2024-12-13 05:11:47 +03:00
parent 189e2fad04
commit 3570c15632

View File

@ -287,12 +287,10 @@ xreadpass(){
local PASS2
for attempt in 1 2 3 ; do
read -sep "${prefix}${msg}password (Enter to skip): " PASS1
echo
if [ -z $PASS1 ] ; then
return
fi
read -sep "${prefix}retype password: " PASS2
echo
if [[ $PASS1 != $PASS2 ]] ; then
echo "ERROR: passwords do not match." >&2
continue