NetBSD/share/sushi/users/deluser/script

11 lines
184 B
Bash
Executable File

#!/bin/sh
# $NetBSD: script,v 1.1 2001/01/05 02:07:00 garbled Exp $
if [ "$3" = "yes" ]; then
userdel -v -r $1
else
userdel -v $1
fi
if [ $? -eq 0 ]; then
echo "User $1 deleted"
fi