diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2024-08-13 11:58:14 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2024-08-13 11:58:14 +0900 |
| commit | 8049d3f069f9a4f908196fe2ed0e95144173ceac (patch) | |
| tree | 609f069be13093fa395ca3c7a2a23550b00fab1e | |
| parent | 28443a2ec210d155d42a1cfa313c737d3027c349 (diff) | |
Init
| -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 } |
