diff options
Diffstat (limited to 'plugins/users/commit.sh')
-rw-r--r-- | plugins/users/commit.sh | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/plugins/users/commit.sh b/plugins/users/commit.sh new file mode 100644 index 0000000..f272013 --- /dev/null +++ b/plugins/users/commit.sh @@ -0,0 +1,21 @@ +#!@SHELL@ +name='rvs users commit' +ver='0.7.2' +# Copyright (C) 2009 Luke Shumaker +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# Originally written by Luke Shumaker <lukeshu@sbcglobal.net>. + +source "$libexecdir/lib/stdio" + +ret=`$RVS repo-0.7beta/commit $@` +if [ -f "$REPO/user" ]; then + cp "$REPO/user" "$REPO/repo/$ret" + echo "$ret" +else + error 'you must be logged in to commit files' +fi + |