Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 Mar 2014 22:29:00 +0000 (UTC)
From:      Devin Teske <dteske@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r262910 - head/usr.sbin/bsdconfig/usermgmt
Message-ID:  <201403072229.s27MT0dF081494@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dteske
Date: Fri Mar  7 22:29:00 2014
New Revision: 262910
URL: http://svnweb.freebsd.org/changeset/base/262910

Log:
  Take a group name on the command-line if available.

Modified:
  head/usr.sbin/bsdconfig/usermgmt/groupdel

Modified: head/usr.sbin/bsdconfig/usermgmt/groupdel
==============================================================================
--- head/usr.sbin/bsdconfig/usermgmt/groupdel	Fri Mar  7 22:24:53 2014	(r262909)
+++ head/usr.sbin/bsdconfig/usermgmt/groupdel	Fri Mar  7 22:29:00 2014	(r262910)
@@ -66,6 +66,14 @@ f_dialog_backtitle "${ipgm:+bsdconfig }$
 f_mustberoot_init
 
 #
+# If given a group name, operate on it and exit
+#
+if [ "$1" ]; then
+	f_group_delete "$1"
+	exit $SUCCESS
+fi
+
+#
 # Loop until the user Exits, Cancels or presses ESC
 #
 defaultitem=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201403072229.s27MT0dF081494>