From 1085640b77d13d54612251bbcc921517592357ee Mon Sep 17 00:00:00 2001 From: 0x1eef <0x1eef@protonmail.com> Date: Sat, 27 May 2023 16:22:10 -0300 Subject: [PATCH] Fix bug where `require_group` didn't recognize group members --- libexec/portzap/functions/requirements.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libexec/portzap/functions/requirements.sh b/libexec/portzap/functions/requirements.sh index 5c33a1a..a634edd 100644 --- a/libexec/portzap/functions/requirements.sh +++ b/libexec/portzap/functions/requirements.sh @@ -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