fix:pnpm更换yarn

This commit is contained in:
atshike
2025-01-13 15:55:19 +08:00
parent ab39bd85c9
commit 4d48495c25
2 changed files with 6 additions and 6 deletions
+6 -6
View File
@@ -4,9 +4,9 @@ if [ "$(id -u)" -ne 0 ]; then
echo "请切换root(sudo su)"
exit 0
fi
# 检测pnpm
if ! command -v pnpm >/dev/null 2>&1; then
echo "pnpm 未安装"
# 检测yarn
if ! command -v yarn >/dev/null 2>&1; then
echo "yarn 未安装"
exit 0
fi
# 检测php
@@ -43,15 +43,15 @@ fi
echo "cd admin"
cd admin
if [ ! -e "install.lock" ]; then
if ! pnpm install; then
echo "pnpm 安装失败"
if ! yarn install; then
echo "yarn 安装失败"
exit 0
fi
touch install.lock
fi
echo "编译后台"
pnpm build
yarn build
cd ../
Binary file not shown.