diff options
| -rwxr-xr-x | public/thesiah-debian.sh | 6 | ||||
| -rwxr-xr-x | static/thesiah-debian.sh | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/public/thesiah-debian.sh b/public/thesiah-debian.sh index 9b93707..7f7c928 100755 --- a/public/thesiah-debian.sh +++ b/public/thesiah-debian.sh @@ -33,10 +33,10 @@ welcomemsg() { getuserandpass() { name=$(whiptail --inputbox "Please enter a name for the user account." 10 60 3>&1 1>&2 2>&3 3>&1) || error "User exited." - pass=$(whiptail --passwordbox "Enter a password for the user." 10 60 3>&1 1>&2 2>&3 3>&1) || error "User exited." + pass1=$(whiptail --passwordbox "Enter a password for the user." 10 60 3>&1 1>&2 2>&3 3>&1) || error "User exited." pass2=$(whiptail --passwordbox "Retype password." 10 60 3>&1 1>&2 2>&3 3>&1) || error "User exited." - while ! [ "$pass" = "$pass2" ]; do - pass=$(whiptail --passwordbox "Passwords do not match.\\n\\nEnter password again." 10 60 3>&1 1>&2 2>&3 3>&1) + while ! [ "$pass1" = "$pass2" ]; do + pass1=$(whiptail --passwordbox "Passwords do not match.\\n\\nEnter password again." 10 60 3>&1 1>&2 2>&3 3>&1) pass2=$(whiptail --passwordbox "Retype password." 10 60 3>&1 1>&2 2>&3 3>&1) done } diff --git a/static/thesiah-debian.sh b/static/thesiah-debian.sh index 9b93707..7f7c928 100755 --- a/static/thesiah-debian.sh +++ b/static/thesiah-debian.sh @@ -33,10 +33,10 @@ welcomemsg() { getuserandpass() { name=$(whiptail --inputbox "Please enter a name for the user account." 10 60 3>&1 1>&2 2>&3 3>&1) || error "User exited." - pass=$(whiptail --passwordbox "Enter a password for the user." 10 60 3>&1 1>&2 2>&3 3>&1) || error "User exited." + pass1=$(whiptail --passwordbox "Enter a password for the user." 10 60 3>&1 1>&2 2>&3 3>&1) || error "User exited." pass2=$(whiptail --passwordbox "Retype password." 10 60 3>&1 1>&2 2>&3 3>&1) || error "User exited." - while ! [ "$pass" = "$pass2" ]; do - pass=$(whiptail --passwordbox "Passwords do not match.\\n\\nEnter password again." 10 60 3>&1 1>&2 2>&3 3>&1) + while ! [ "$pass1" = "$pass2" ]; do + pass1=$(whiptail --passwordbox "Passwords do not match.\\n\\nEnter password again." 10 60 3>&1 1>&2 2>&3 3>&1) pass2=$(whiptail --passwordbox "Retype password." 10 60 3>&1 1>&2 2>&3 3>&1) done } |
