소스 검색

HDDS-1800. Result of author check is inverted

Closes #1092
Doroszlai, Attila 5 년 전
부모
커밋
3c41bc7f91
1개의 변경된 파일2개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 3
      hadoop-ozone/dev-support/checks/author.sh

+ 2 - 3
hadoop-ozone/dev-support/checks/author.sh

@@ -20,9 +20,8 @@ cd "$DIR/../../.." || exit 1
 AUTHOR="uthor"
 AUTHOR="@a${AUTHOR}"
 
-grep -r --include="*.java" "$AUTHOR" .
 if grep -r --include="*.java" "$AUTHOR" .; then
-  exit 0
-else
   exit 1
+else
+  exit 0
 fi