From 51e7dc32215f1d9e70c427584a8575b0965a9627 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rton=20Elek?= Date: Fri, 12 Jul 2019 11:35:34 +0200 Subject: [PATCH] make author check yetus safe --- hadoop-ozone/dev-support/checks/author.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/hadoop-ozone/dev-support/checks/author.sh b/hadoop-ozone/dev-support/checks/author.sh index 49a8fba283..d5a469cca1 100755 --- a/hadoop-ozone/dev-support/checks/author.sh +++ b/hadoop-ozone/dev-support/checks/author.sh @@ -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