Skip to content

Commit

Permalink
HDDS-2024. rat.sh: grep: warning: recursive search of stdin
Browse files Browse the repository at this point in the history
Closes #1343
  • Loading branch information
adoroszlai authored and elek committed Aug 23, 2019
1 parent d3fe993 commit 75bf090
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hadoop-ozone/dev-support/checks/rat.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit 75bf090

Please sign in to comment.