瀏覽代碼

make author check yetus safe

Márton Elek 6 年之前
父節點
當前提交
51e7dc3221
共有 1 個文件被更改,包括 6 次插入2 次删除
  1. 6 2
      hadoop-ozone/dev-support/checks/author.sh

+ 6 - 2
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