rmuser.sh: Improve prompt consistency with adduser

While here, improve userlist error message.

PR:			289399
MFC after:		3 days
Reviewed by:		kbowling, rgrimes
Approved by:		kbowling, rgrimes (src)
Reported by:		michaeldexter, rgrimes
Differential Revision:	https://reviews.freebsd.org/D52464
This commit is contained in:
Alexander Ziaee
2025-09-09 13:06:29 -04:00
parent d81b337d69
commit fc68f8aac6
+3 -3
View File
@@ -303,7 +303,7 @@ if [ ! "$userlist" ]; then
show_usage
exit 1
else
echo -n "Please enter one or more usernames: "
echo -n "Please enter one or more usernames, or press enter to exit: "
read userlist
fi
fi
@@ -333,11 +333,11 @@ for _user in $userlist ; do
echo
echo $userrec
echo
if ! prompt_yesno "Is this the entry you wish to remove? " ; then
if ! prompt_yesno "Is this the entry you wish to remove? (yes/no): " ; then
continue
fi
_homedir=`echo $userrec | awk -F: '{print $9}'`
if prompt_yesno "Remove user's home directory ($_homedir)? "; then
if prompt_yesno "Remove user's home directory? [$_homedir] (yes/no): "; then
pw_rswitch="-r"
fi
else