new: clean up the group name input code
authorDarrick J. Wong <djwong@kernel.org>
Fri, 17 Sep 2021 00:39:55 +0000 (17:39 -0700)
committerEryu Guan <guaneryu@gmail.com>
Sun, 26 Sep 2021 13:35:02 +0000 (21:35 +0800)
commit6fe95af3955721b37ec220bb320f1577cd0fac54
tree29156d1ed3afac4335eed6b49cf6555b3ec0910e
parent797dcac566a09678db59fd6718ed23530ea7da5a
new: clean up the group name input code

Clean up the code that reads group names in from the command line to
take advantage of the read command's ability to display a prompt.  While
we're at it, we should abort the script if the group list encounters
EOF, and we can tighten up some of the other sh-isms too.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
new