diff --git a/libexec/portzap/isportzap-member b/libexec/portzap/isportzap-member index 593e357..4ce02cf 100644 --- a/libexec/portzap/isportzap-member +++ b/libexec/portzap/isportzap-member @@ -5,5 +5,5 @@ set -e # main group="_portzap" mygroups=$(id -Gn | tr ' ' '\n') -echo "${mygroups}" | grep -e "^${group}$" > /dev/null 2>&1 +anymatch=$(echo "${mygroups}" | grep -e "^${group}$") exit "${?}" diff --git a/libexec/portzap/portzap-checkout b/libexec/portzap/portzap-checkout index a18a6f2..ee0f234 100644 --- a/libexec/portzap/portzap-checkout +++ b/libexec/portzap/portzap-checkout @@ -29,7 +29,7 @@ if [ "$(id -u)" = "0" ]; then exit 1 fi -if ! "${libexec}"/isportzap-member; then +if ! "${libexec}"/isportzap-member > /dev/null 2>&1; then printerr "$(id -un) is not a member of _portzap" exit 1 fi diff --git a/libexec/portzap/portzap-clone b/libexec/portzap/portzap-clone index 48971c2..27f6d30 100755 --- a/libexec/portzap/portzap-clone +++ b/libexec/portzap/portzap-clone @@ -34,7 +34,7 @@ if [ "$(id -u)" = "0" ]; then exit 1 fi -if ! "${libexec}"/isportzap-member; then +if ! "${libexec}"/isportzap-member > /dev/null 2>&1; then printerr "$(id -un) is not a member of _portzap" exit 1 fi diff --git a/libexec/portzap/portzap-pull b/libexec/portzap/portzap-pull index 683fd62..63346a4 100755 --- a/libexec/portzap/portzap-pull +++ b/libexec/portzap/portzap-pull @@ -32,7 +32,7 @@ if [ "$(id -u)" = "0" ]; then exit 1 fi -if ! "${libexec}"/isportzap-member; then +if ! "${libexec}"/isportzap-member > /dev/null 2>&1; then printerr "$(id -un) is not a member of _portzap" exit 1 fi