From 802a70c07b573d5fe850aef0a125c6305cc0ae35 Mon Sep 17 00:00:00 2001 From: Joshua Thijssen Date: Fri, 1 Dec 2023 09:45:11 +0100 Subject: [PATCH] up --- .github/workflows/check_authors.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/check_authors.sh b/.github/workflows/check_authors.sh index 924063056..fe36ee2ea 100644 --- a/.github/workflows/check_authors.sh +++ b/.github/workflows/check_authors.sh @@ -3,9 +3,9 @@ is_in_authors() { TARGET=$1 if grep -Fq "$TARGET" AUTHORS; then - return 0 - else return 1 + else + return 0 fi } @@ -17,7 +17,7 @@ for COMMITTER in "$COMMITTERS" ; do NAME=$(echo $COMMITTER | cut -d ";" -f 1) EMAIL=$(echo $COMMITTER | cut -d ";" -f 2) - if is_in_authors "$EMAIL" == 1 && is_in_authors "$NAME" == 1; then + if is_in_authors "$EMAIL" == 0 && is_in_authors "$NAME" == 0; then echo "This author is not found in the AUTHORS file" exit 1 fi