diff options
Diffstat (limited to 'src')
-rwxr-xr-x | src/groups.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/groups.sh b/src/groups.sh index d115d2a77..508e95a18 100755 --- a/src/groups.sh +++ b/src/groups.sh @@ -46,8 +46,12 @@ esac if [ $# -eq 0 ]; then id -Gn + status=$? else for name in "$@"; do - echo $name : `id -Gn -- $name` + groups=`id -Gn -- $name` + status=$? + test $status = 0 && echo $name : $groups done fi +exit $status |