1
0
mirror of synced 2025-11-06 04:20:54 +08:00

Update build.sh

This commit is contained in:
木子李·De
2021-07-20 12:06:31 +08:00
parent 2ac31ebe48
commit 0877e99a77

View File

@@ -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` #工程根目录