From b4a53a5b638262763d1adbb053f35571b1bb42c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=A8=E5=AD=90=E6=9D=8E=C2=B7De?= Date: Mon, 19 Jul 2021 00:13:52 +0800 Subject: [PATCH] Update build.sh --- build.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build.sh b/build.sh index f68b994f..cdb50d51 100644 --- a/build.sh +++ b/build.sh @@ -17,9 +17,12 @@ mvn clean >/dev/null 2>&1 mvn package -Dmaven.test.skip=true >/dev/null 2>&1 echo "zip finish in build dir" -mkdir $BuildDir/build +if [ ! -d "$BuildDir/build" ]; then + mkdir $BuildDir/build +fi mv $BuildDir/report-core/target/report-core-1.0.0-SNAPSHOT-assembly.zip $BuildDir/build/ + cd $BuildDir/ rm -rf $BuildDir/report-core/src/main/resources/static git reset --hard >/dev/null 2>&1 \ No newline at end of file