You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by el...@apache.org on 2019/08/23 10:33:19 UTC
[hadoop] branch trunk updated: HDDS-2024. rat.sh: grep: warning:
recursive search of stdin
This is an automated email from the ASF dual-hosted git repository.
elek pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/hadoop.git
The following commit(s) were added to refs/heads/trunk by this push:
new 75bf090 HDDS-2024. rat.sh: grep: warning: recursive search of stdin
75bf090 is described below
commit 75bf090990d5237e2f76f83d00dce5259c39a294
Author: Doroszlai, Attila <ad...@apache.org>
AuthorDate: Fri Aug 23 12:32:40 2019 +0200
HDDS-2024. rat.sh: grep: warning: recursive search of stdin
Closes #1343
---
hadoop-ozone/dev-support/checks/rat.sh | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/hadoop-ozone/dev-support/checks/rat.sh b/hadoop-ozone/dev-support/checks/rat.sh
index 68ca56e..480e4d3 100755
--- a/hadoop-ozone/dev-support/checks/rat.sh
+++ b/hadoop-ozone/dev-support/checks/rat.sh
@@ -17,7 +17,7 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
cd "$DIR/../../.." || exit 1
mkdir -p target
-REPORT_FILE="$DIR/../../../target/rat-aggretaged.txt"
+REPORT_FILE="$DIR/../../../target/rat-aggregated.txt"
mkdir -p "$(dirname "$REPORT_FILE")"
cd hadoop-hdds || exit 1
@@ -26,8 +26,8 @@ cd ../hadoop-ozone || exit 1
mvn -B -fn org.apache.rat:apache-rat-plugin:0.13:check
cd "$DIR/../../.." || exit 1
-grep -r --include=rat.txt "!????" | tee "$REPORT_FILE"
-if [ "$(cat target/rat-aggregated.txt)" ]; then
+grep -r --include=rat.txt "!????" hadoop-hdds hadoop-ozone | tee "$REPORT_FILE"
+if [[ -s "${REPORT_FILE}" ]]; then
exit 1
fi
---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org