diff --git a/hadoop-ozone/dev-support/checks/checkstyle.sh b/hadoop-ozone/dev-support/checks/checkstyle.sh index 60efef0ede..0d80fbce2c 100755 --- a/hadoop-ozone/dev-support/checks/checkstyle.sh +++ b/hadoop-ozone/dev-support/checks/checkstyle.sh @@ -15,7 +15,7 @@ # limitations under the License. mvn -fn checkstyle:check -am -pl :hadoop-ozone-dist -Phdds -violations=$(grep -r error --include checkstyle-errors.xml | wc -l) +violations=$(grep -r error --include checkstyle-errors.xml .| wc -l) if [[ $violations -gt 0 ]]; then echo "There are $violations checkstyle violations" exit -1