From 0e3de64cdd2afd0ae402b84923950c4bb1d783fc Mon Sep 17 00:00:00 2001 From: Brandon Rozek Date: Wed, 29 Mar 2023 21:47:43 -0400 Subject: [PATCH] Maven command check --- run_spectra.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/run_spectra.sh b/run_spectra.sh index a5e6845..b1ac116 100755 --- a/run_spectra.sh +++ b/run_spectra.sh @@ -13,6 +13,11 @@ if [ "$#" -ne 1 ]; then show_usage fi +if ! command -v mvn &> /dev/null; then + echo "Maven (mvn) is not found in the path" + exit 1 +fi + mvn -q exec:java -Dexec.mainClass="com.naveensundarg.planner.utils.Runner" -Dexec.args="$1"