fix(deploy): automatically download .agents/skills from Gitea if missing in installer
This commit is contained in:
@@ -44,6 +44,19 @@ fi
|
||||
|
||||
# --- 2. Workspace Setup ---
|
||||
cd "$TARGET_DIR"
|
||||
|
||||
# Download .agents/skills if missing (for curl one-liner installs)
|
||||
if [ ! -d ".agents/skills" ]; then
|
||||
echo "📥 .agents/skills not found. Fetching from Gitea repository..."
|
||||
if command -v git &>/dev/null && [ -z "$(ls -A 2>/dev/null || echo "")" ]; then
|
||||
echo "🌐 Cloning Gitea repository..."
|
||||
git clone "https://git.godopu.com/tmpl/multi-agent-mux.git" .
|
||||
else
|
||||
echo "🌐 Downloading and extracting skills archive..."
|
||||
curl -fsSL "https://git.godopu.com/tmpl/multi-agent-mux/archive/main.tar.gz" | tar -xz --strip-components=1
|
||||
fi
|
||||
fi
|
||||
|
||||
echo "📂 Ensuring metadata directory structure (.mam/)..."
|
||||
mkdir -p .mam/jobs .mam/delegate_job_logs
|
||||
|
||||
|
||||
Reference in New Issue
Block a user