2000-12-16 17:19:34 +08:00
|
|
|
# -*- sh -*-
|
|
|
|
# Set `groups' to a space-separated list of at least two groups of which
|
|
|
|
# the user is a member.
|
|
|
|
|
2000-12-29 16:58:25 +08:00
|
|
|
groups=${FETISH_GROUPS-`(id -nG || /usr/xpg4/bin/id -nG) 2>/dev/null`}
|
2000-12-16 17:19:34 +08:00
|
|
|
case "$groups" in
|
|
|
|
*' '*) ;;
|
|
|
|
*) cat <<EOF 1>&2
|
|
|
|
$0: this test requires that you be a member of more than one group,
|
|
|
|
but running \`id -nG' either failed or found just one. If you really
|
|
|
|
are a member of at least two group, then rerun this test with FETISH_GROUPS
|
|
|
|
set in your environment to the space-separated list of names. E.g.,
|
|
|
|
|
|
|
|
env FETISH_GROUPS='users cdrom' make check
|
|
|
|
|
|
|
|
EOF
|
|
|
|
(exit 77); exit
|
|
|
|
;;
|
|
|
|
esac
|