mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-24 22:58:43 +01:00
#1298 accept cancel on first ask
This commit is contained in:
parent
b1d2ae4528
commit
f325990190
1 changed files with 4 additions and 1 deletions
|
@ -317,7 +317,10 @@ elif [ "${abcd}" = "x" ]; then
|
|||
password1=$(whiptail --passwordbox "\n${text}:\n(min 8chars, 1word, chars+number, no specials)" 10 52 "" --backtitle "RaspiBlitz" 3>&1 1>&2 2>&3)
|
||||
|
||||
# ask user for new password A (second time)
|
||||
password2=$(whiptail --passwordbox "\nRe-Enter the Password:\n(to test if typed in correctly)" 10 52 "" --backtitle "RaspiBlitz" 3>&1 1>&2 2>&3)
|
||||
password2=""
|
||||
if [ ${#password1} -gt 0 ]; then
|
||||
password2=$(whiptail --passwordbox "\nRe-Enter the Password:\n(to test if typed in correctly)" 10 52 "" --backtitle "RaspiBlitz" 3>&1 1>&2 2>&3)
|
||||
fi
|
||||
|
||||
# check if passwords match
|
||||
if [ "${password1}" != "${password2}" ]; then
|
||||
|
|
Loading…
Add table
Reference in a new issue