mirror of
https://github.com/flynx/proxmox-utils.git
synced 2025-10-29 03:00:09 +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
|
local PASS2
|
||||||
for attempt in 1 2 3 ; do
|
for attempt in 1 2 3 ; do
|
||||||
read -sep "${prefix}${msg}password (Enter to skip): " PASS1
|
read -sep "${prefix}${msg}password (Enter to skip): " PASS1
|
||||||
echo
|
|
||||||
if [ -z $PASS1 ] ; then
|
if [ -z $PASS1 ] ; then
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
read -sep "${prefix}retype password: " PASS2
|
read -sep "${prefix}retype password: " PASS2
|
||||||
echo
|
|
||||||
if [[ $PASS1 != $PASS2 ]] ; then
|
if [[ $PASS1 != $PASS2 ]] ; then
|
||||||
echo "ERROR: passwords do not match." >&2
|
echo "ERROR: passwords do not match." >&2
|
||||||
continue
|
continue
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user