Browse Source

HDDS-1800. Result of author check is inverted

Closes #1092
Doroszlai, Attila 5 years ago
parent
commit
3c41bc7f91
1 changed files with 2 additions and 3 deletions
  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="uthor"
 AUTHOR="@a${AUTHOR}"
 AUTHOR="@a${AUTHOR}"
 
 
-grep -r --include="*.java" "$AUTHOR" .
 if grep -r --include="*.java" "$AUTHOR" .; then
 if grep -r --include="*.java" "$AUTHOR" .; then
-  exit 0
-else
   exit 1
   exit 1
+else
+  exit 0
 fi
 fi