The filter I added for removing duplicate users from the
output of repquota didn't do the job very well. This
fixes that, making it so the first time a user is seen
its line is printed, not thereafter.
Signed-off-by: Alex Elder <aelder@sgi.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
done
repquota -$type -s -n $SCRATCH_MNT | grep -v "^#0" | filter_scratch |
- awk '/^#/ { if (! seen[$1]) { seen[$1]++; next; } } { print }'
+ awk '/^#/ { if (seen[$1]) next; seen[$1]++; } } { print; }'
}
# real QA test starts here