Fix typos for password title

There was a typo I noticed during my setup where the dialog would ask me to set Password B but the title would say "Password A".
This commit is contained in:
Fero 2020-07-03 12:22:30 +02:00 committed by GitHub
parent 282d9c3139
commit 6ede396d7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -139,11 +139,11 @@ elif [ "${abcd}" = "b" ]; then
if [ ${#newPassword} -eq 0 ]; then
clear
# ask user for new password A (first time)
password1=$(whiptail --passwordbox "\nPlease enter your RPC Password B:\n(min 8chars, 1word, chars+number, no specials)" 10 52 "" --title "Password A" --backtitle "RaspiBlitz - Setup" 3>&1 1>&2 2>&3)
# ask user for new password B (first time)
password1=$(whiptail --passwordbox "\nPlease enter your RPC Password B:\n(min 8chars, 1word, chars+number, no specials)" 10 52 "" --title "Password B" --backtitle "RaspiBlitz - Setup" 3>&1 1>&2 2>&3)
# ask user for new password A (second time)
password2=$(whiptail --passwordbox "\nRe-Enter Password B:\n" 10 52 "" --title "Password A" --backtitle "RaspiBlitz - Setup" 3>&1 1>&2 2>&3)
# ask user for new password B (second time)
password2=$(whiptail --passwordbox "\nRe-Enter Password B:\n" 10 52 "" --title "Password B" --backtitle "RaspiBlitz - Setup" 3>&1 1>&2 2>&3)
# check if passwords match
if [ "${password1}" != "${password2}" ]; then
@ -339,4 +339,4 @@ elif [ "${abcd}" = "x" ]; then
else
echo "FAIL: there is no password '${abcd}' (reminder: use lower case)"
exit 1
fi
fi