<div dir="ltr"><div style>This patch lets the -g option take multiple group names.</div><div style><br></div><div style>Signed-off-By: Itaru Kitayama <<a href="mailto:itaru.kitayama@gmail.com">itaru.kitayama@gmail.com</a>></div>
<div><br></div><div> check | 23 ++++++++++++-----------</div><div> 1 file changed, 12 insertions(+), 11 deletions(-)</div><div><br></div><div>diff --git a/check b/check</div><div>index a79747e..0e0f208 100755</div><div>
--- a/check</div><div>+++ b/check</div><div>@@ -164,18 +164,19 @@ while [ $# -gt 0 ]; do</div><div> -nfs) FSTYP=nfs ;;</div><div> </div><div> -g) group=$2 ; shift ;</div><div>- group_list=$(get_group_list $group)</div>
<div>- if [ -z "$group_list" ]; then</div><div>- echo "Group \"$group\" is empty or not defined?"</div><div>- exit 1</div><div>- fi</div>
<div>-</div><div>- [ ! -s $tmp.list ] && touch $tmp.list</div><div>- for t in $group_list; do</div><div>- grep -s "^$t\$" $tmp.list >/dev/null || \</div>
<div>- echo "$t" >>$tmp.list</div><div>+ for g in ${group//,/ }; do</div><div>+ group_list=$(get_group_list $g)</div>
<div>+ if [ -z "$group_list" ]; then</div><div>+ echo "Group \"$g\" is empty or not defined?"</div><div>+ exit 1</div><div>+ fi</div>
<div>+ </div><div>+ [ ! -s $tmp.list ] && touch $tmp.list</div><div>+ for t in $group_list; do</div><div>+ grep -s "^$t\$" $tmp.list >/dev/null || \</div>
<div>+ echo "$t" >>$tmp</div><div>+ done</div><div> done</div><div>-</div><div> ;;</div><div>
</div><div> -x) xgroup=$2 ; shift ;</div></div>