From fc8d2f56a8104e755766fbbca4729906000cf78d Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Mon, 3 Aug 2009 19:03:08 -0400 Subject: 0.7.2 -- refactor slightly, flesh out plugin: users --- plugins/users/rmuser.sh | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'plugins/users/rmuser.sh') diff --git a/plugins/users/rmuser.sh b/plugins/users/rmuser.sh index 85ba64a..bad801e 100644 --- a/plugins/users/rmuser.sh +++ b/plugins/users/rmuser.sh @@ -1,6 +1,6 @@ #!@SHELL@ -name='rvs rmuser' -ver='0.7.0' +name='rvs users rmuser' +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 @@ -9,6 +9,12 @@ ver='0.7.0' # # Originally written by Luke Shumaker . -uname=$1 -rm "$REPO/$uname" +source "$libexecdir/lib/stdio" + +user="$1" +if [ -f "$REPO/users/$user" ]; then + rm "$REPO/users/$user" +else + error "User \`$user' does not exist" +fi -- cgit v1.2.3-2-g168b