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:
parent
c804713000
commit
4b1f2538df
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user