summaryrefslogtreecommitdiff
path: root/plugins/users/rmuser.sh
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/users/rmuser.sh')
-rw-r--r--plugins/users/rmuser.sh14
1 files changed, 10 insertions, 4 deletions
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 <lukeshu@sbcglobal.net>.
-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