From 0877e99a77fdadc98872bc4b3fc0f371293f0ca0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=A8=E5=AD=90=E6=9D=8E=C2=B7De?= Date: Tue, 20 Jul 2021 12:06:31 +0800 Subject: [PATCH] Update build.sh --- build.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/build.sh b/build.sh index cdb50d51..f8edbb22 100644 --- a/build.sh +++ b/build.sh @@ -1,4 +1,9 @@ #!/bin/bash + +#判断node.js mvn是否存在 +command -v npm >/dev/null 2>&1 || { echo >&2 "I require node.js v14.16.0+ but it's not installed. Aborting."; sleep 5; exit 1; } +command -v mvn >/dev/null 2>&1 || { echo >&2 "I require maven 3.5 + but it's not installed. Aborting."; sleep 5; exit 1; } + cd `dirname $0` BuildDir=`pwd` #工程根目录