SUBMARINE-88. rat.sh regex pattern not working issue while using lower version of grep in ubuntu16.04. Contributed by Zhankun Tang.

This commit is contained in:
Sunil G 2019-06-05 07:48:24 +05:30
parent e7e30a5f8b
commit 96d818a2f7

View File

@ -17,7 +17,7 @@
mkdir -p target
rm target/rat-aggregated.txt
mvn apache-rat:check
grep -r --include=rat.txt "\!\?\?\?\?" ./* | tee ./target/rat-aggregated.txt
grep -r --include=rat.txt -E "\!\?\?\?\?" ./* | tee ./target/rat-aggregated.txt
if [ "$(cat target/rat-aggregated.txt)" ]; then
echo "Failed to pass apache rat check!"
exit -1