refactor(sh): 移除 nginx.sh 中的冗余代码

- 删除了检查 $packUrl/dist目录是否存在的逻辑
-移除了多余的空行,优化了代码结构
main-p
shi 2025-03-01 14:26:33 +08:00
parent b29e21816c
commit 790720446a
1 changed files with 2 additions and 3 deletions

View File

@ -18,8 +18,7 @@ packUrl=$3
cd "$packUrl" || { echo "Error: Failed to change directory to $packUrl"; exit 1; }
# 检查 $packUrl/dist 路径是否存在存在就不需要打包
if [ ! -d "$packUrl/dist" ]; then
# 执行构建命令
@ -27,7 +26,7 @@ npm install
npm run build -- --tenant="$tenantName"
fi
# 删除目标目录下的所有文件和子目录