克隆配置前先清除旧目录,确保状态干净

This commit is contained in:
2026-03-25 14:10:57 +08:00
parent 8d1f6254cc
commit 2484a67096
+1 -4
View File
@@ -22,11 +22,8 @@ echo "==> 安装 dcli..."
yay -S --needed --noconfirm dcli-arch-git yay -S --needed --noconfirm dcli-arch-git
echo "==> 克隆配置仓库..." echo "==> 克隆配置仓库..."
if [ -d "$CONFIG_DIR" ]; then rm -rf "$CONFIG_DIR"
echo "配置目录已存在,跳过克隆"
else
git clone "$REPO_URL" "$CONFIG_DIR" git clone "$REPO_URL" "$CONFIG_DIR"
fi
echo "" echo ""
echo "✓ 安装完成!" echo "✓ 安装完成!"