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