For non-interactive scripts, forgot to check we were given an argument
before proceeding.
This commit is contained in:
parent
faae0586c2
commit
863bb16483
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user