mirror of
https://github.com/flynx/proxmox-utils.git
synced 2025-10-28 10:40:07 +00:00
minor tweak...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
189e2fad04
commit
3570c15632
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user