浏览代码

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