diff options
author | peter <peter@FreeBSD.org> | 1999-08-08 20:36:03 +0800 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1999-08-08 20:36:03 +0800 |
commit | a13e0d0fe3590e8f12881197832b638c500b6c7b (patch) | |
tree | bcbe79557a358a95f2ef87bdc4093232981b7b16 /CVSROOT/commitcheck | |
parent | 72a2b2fe04e9b4ddf36e59aab31952b3af2f7484 (diff) | |
download | freebsd-ports-gnome-a13e0d0fe3590e8f12881197832b638c500b6c7b.tar.gz freebsd-ports-gnome-a13e0d0fe3590e8f12881197832b638c500b6c7b.tar.zst freebsd-ports-gnome-a13e0d0fe3590e8f12881197832b638c500b6c7b.zip |
Check for group ncvs before we get in too far.
Diffstat (limited to 'CVSROOT/commitcheck')
-rwxr-xr-x | CVSROOT/commitcheck | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/CVSROOT/commitcheck b/CVSROOT/commitcheck index ea05b0bd54ec..85f1392f053d 100755 --- a/CVSROOT/commitcheck +++ b/CVSROOT/commitcheck @@ -1,6 +1,6 @@ #! /bin/sh # -# $Id: commitcheck,v 1.8 1999/01/24 20:07:28 peter Exp $ +# $Id: commitcheck,v 1.9 1999/01/25 01:28:13 peter Exp $ # # BEWARE: If you are "borrowing" this code for use on another cvs @@ -18,6 +18,16 @@ freefall.freebsd.org) esac # +# Sanity check to make sure we've been run through the wrapper and are now +# primary group 'ncvs'. +# +GRP=`/usr/bin/id -gn` +if [ "x$GRP" != "xncvs" ]; then + echo "You do not have group ncvs!" + exit 1 +fi + +# # Ensure the minimum version of cvs is installed. # VERS=`/usr/bin/cvs -v | awk '$1 == "Concurrent" { print $5 }' | awk -F. '{printf "%d%02d%02d\n",$1,$2,$3}'` |