Commit d6f81f0f authored by Kunkka王辉's avatar Kunkka王辉 😲

脚本优化

parent 67569511
#!/bin/bash #!/bin/bash
#进入项目 #进入项目
# 接收参数 # 接收参数
if [ -n "\$1" ]; then
PROJECT_NAME="\$1"
fi
cd /app/code/$PROJECT_NAME cd /app/code/$PROJECT_NAME
mvn clean package -B -DskipTests mvn clean package -B -DskipTests
mv /app/code/$PROJECT_NAME/target/*.jar /app/app.jar mv /app/code/$PROJECT_NAME/target/*.jar /app/app.jar
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment