In interactive mode, ask the user if he/she wants to add another

user and re-run interactive questions or quit depending on the
answer.

Submitted by: Scot Hetzel <hetzels@westbend.net>
Approved by: markm (mentor)
This commit is contained in:
mtm 2003-01-24 00:24:26 +00:00
parent c804713000
commit 4b1f2538df

View File

@ -881,4 +881,22 @@ if [ -n "$fflag" ]; then
fi
else
input_interactive
while : ; do
echo -n "Add another user? (yes/no): "
read _input
case $_input in
[Yy][Ee][Ss]|[Yy][Ee]|[Yy])
uidstart=`get_nextuid $uidstart`
input_interactive
continue
;;
[Nn][Oo]|[Nn])
echo "Goodbye!"
;;
*)
continue
;;
esac
break
done
fi