Browse Source

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

Sunil G 6 years ago
parent
commit
96d818a2f7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      hadoop-submarine/dev-support/checks/rat.sh

+ 1 - 1
hadoop-submarine/dev-support/checks/rat.sh

@@ -17,7 +17,7 @@
 mkdir -p target
 mkdir -p target
 rm target/rat-aggregated.txt
 rm target/rat-aggregated.txt
 mvn apache-rat:check
 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
 if [ "$(cat target/rat-aggregated.txt)" ]; then
    echo "Failed to pass apache rat check!"
    echo "Failed to pass apache rat check!"
    exit -1
    exit -1