From 0bc1eb2a7df14999869f1875ce43b51739bc2df7 Mon Sep 17 00:00:00 2001 From: Robert Holosynskyi <67008426+ls-robert-holosynskyi@users.noreply.github.com> Date: Mon, 7 Feb 2022 13:20:29 +0100 Subject: [PATCH] Fix maven wrapper existence check (#27) --- pre_commit_hooks/maven-checkstyle.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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