Simpler check for local file modifications.
@@ -49,7 +49,7 @@ for(j = 0; j < jdks.size(); j++) {
if(isUnix()) {
sh mvnCmd
- sh 'test `git status --short | tee /dev/stderr | wc --bytes` -eq 0'
+ sh 'git add . && git diff --exit-code HEAD'
} else {
bat mvnCmd
}
