Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
jaytaph committed Dec 1, 2023
1 parent 9fd9ac2 commit 802a70c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/check_authors.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
is_in_authors() {
TARGET=$1
if grep -Fq "$TARGET" AUTHORS; then
return 0
else
return 1
else
return 0
fi
}

Expand All @@ -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
Expand Down

0 comments on commit 802a70c

Please sign in to comment.