diff --git a/gitHooks/scripts/javaPreCommit b/gitHooks/scripts/javaPreCommit index fac82579a..19076694d 100755 --- a/gitHooks/scripts/javaPreCommit +++ b/gitHooks/scripts/javaPreCommit @@ -1,6 +1,6 @@ #!/bin/bash -if ! command -v &> /dev/null #checks if maven is installed +if ! command -v mvn &> /dev/null #checks if maven is installed then echo "Maven is not installed. Spotless will not be checked" exit 0 diff --git a/gitHooks/scripts/reportViewerPreCommit b/gitHooks/scripts/reportViewerPreCommit index ccc359cd8..502b47cb3 100755 --- a/gitHooks/scripts/reportViewerPreCommit +++ b/gitHooks/scripts/reportViewerPreCommit @@ -1,6 +1,6 @@ #!/bin/bash -if ! command -v &> /dev/null #checks if npm is installed +if ! command -v npm &> /dev/null #checks if npm is installed then echo "Npm is not installed. Linter check will be skipped" exit 0