Deleted Added
full compact
4c4
< # Copyright (c) 2012-2013 Devin Teske
---
> # Copyright (c) 2012-2014 Devin Teske
28c28
< # $FreeBSD: stable/9/usr.sbin/bsdconfig/usermgmt/groupdel 252995 2013-07-07 19:13:34Z dteske $
---
> # $FreeBSD: stable/9/usr.sbin/bsdconfig/usermgmt/groupdel 263791 2014-03-27 03:20:47Z dteske $
36a37
> f_include $BSDCFG_SHARE/usermgmt/group.subr
42,43c43,44
< ipgm=$( f_index_menusel_keyword $BSDCFG_LIBE/$APP_DIR/INDEX "$pgm" )
< [ $? -eq $SUCCESS -a "$ipgm" ] && pgm="$ipgm"
---
> f_index_menusel_keyword $BSDCFG_LIBE/$APP_DIR/INDEX "$pgm" ipgm &&
> pgm="${ipgm:-$pgm}"
67a69,76
> # If given a group name, operate on it and exit
> #
> if [ "$1" ]; then
> f_group_delete "$1"
> exit $SUCCESS
> fi
>
> #
70c79
< defaultitem=""
---
> defaultitem=
78c87
< [ $retval -eq 0 ] || f_die
---
> [ $retval -eq $DIALOG_OK ] || f_die
84,85c93
< $BSDCFG_LIBE/$APP_DIR/groupinput \
< ${USE_XDIALOG:+-X} mode="Delete" group="$mtag"
---
> f_group_delete "$mtag"