Retry setting a password until it works

This commit is contained in:
Manuel Thalmann 2024-03-07 20:55:20 +01:00
parent 109e62335f
commit 64b5cacca7

View file

@ -11,4 +11,8 @@ then
fi;
echo "Please Choose a New Password for User \`$USER_NAME\`";
passwd "$USER_NAME";
while ! passwd "$USER_NAME";
do
echo "An error occurred! Please try again."
done;