Retry setting a password until it works

This commit is contained in:
Manuel Thalmann 2024-03-07 20:55:20 +01:00
parent dcf9900129
commit 460c8b9be2

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;