make author check yetus safe

This commit is contained in:
Márton Elek 2019-07-12 11:35:34 +02:00
parent ca7b3e8310
commit 51e7dc3221
No known key found for this signature in database
GPG Key ID: D51EA8F00EE79B28

View File

@ -16,8 +16,12 @@
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
cd "$DIR/../../.." || exit 1
grep -r --include="*.java" "@author" .
if grep -r --include="*.java" "@author" .; then
#hide this tring to not confuse yetus
AUTHOR="uthor"
AUTHOR="@a${AUTHOR}"
grep -r --include="*.java" "$AUTHOR" .
if grep -r --include="*.java" "$AUTHOR" .; then
exit 0
else
exit 1