Fix bug where require_group
didn't recognize group members
This commit is contained in:
parent
861cdc7dd9
commit
1085640b77
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@ require_deps() {
|
|||
require_group() {
|
||||
group=$1
|
||||
cmd=$(id -Gn | tr ' ' '\n' | grep ^${group}$)
|
||||
if [ [$cmd != $group] ]; then
|
||||
if [ "$cmd" != "$group" ]; then
|
||||
echo "You must be a member of the '$group' group to run this command."
|
||||
exit 1
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue