diff --git a/pre_commit_hooks/maven-checkstyle.sh b/pre_commit_hooks/maven-checkstyle.sh index 4028b7c..cf423f2 100755 --- a/pre_commit_hooks/maven-checkstyle.sh +++ b/pre_commit_hooks/maven-checkstyle.sh @@ -4,7 +4,7 @@ cmd="" # Try to use mvnw but fall back to mvn if not found -if [ ! -f "mvnw" ]; then +if [ -f "mvnw" ]; then cmd+="./mvnw" else if ! command -v mvn &>/dev/null; then