Fix creating new user when already exists
This commit is contained in:
parent
e2cc046e3a
commit
368c261a4c
1 changed files with 1 additions and 0 deletions
|
|
@ -57,6 +57,7 @@ create_new_user() {
|
||||||
# Check if the username already exists
|
# Check if the username already exists
|
||||||
if id "$USERNAME" &>/dev/null; then
|
if id "$USERNAME" &>/dev/null; then
|
||||||
echo "User $USERNAME already exists!"
|
echo "User $USERNAME already exists!"
|
||||||
|
create_new_user
|
||||||
else
|
else
|
||||||
echo "Enter the password for the new user: "
|
echo "Enter the password for the new user: "
|
||||||
read -s PASSWORD
|
read -s PASSWORD
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue