For non-interactive scripts, forgot to check we were given an argument

before proceeding.
This commit is contained in:
Devin Teske 2014-03-14 03:34:43 +00:00
parent faae0586c2
commit 863bb16483
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=263148

View File

@ -96,6 +96,10 @@ f_group_add()
[ "$group_name" ] ||
f_show_err "$msg_please_enter_a_group_name"
done
if [ ! "$group_name" ]; then
f_show_err "$msg_no_group_specified"
return $FAILURE
fi
local group_password group_gid group_members
f_getvar $VAR_GROUP_PASSWORD group_password