From 25cf729040a63cfd2f1697c0619241d8788df147 Mon Sep 17 00:00:00 2001 From: Godopu Date: Tue, 23 Jun 2026 23:22:45 +0900 Subject: [PATCH] fix(deploy): add directory creation guard and sanity check after download in installer --- deploy/install.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/deploy/install.sh b/deploy/install.sh index c3a6a6c..1d65f61 100644 --- a/deploy/install.sh +++ b/deploy/install.sh @@ -43,6 +43,7 @@ else fi # --- 2. Workspace Setup --- +mkdir -p "$TARGET_DIR" cd "$TARGET_DIR" # Download .agents/skills if missing (for curl one-liner installs) @@ -55,6 +56,12 @@ if [ ! -d ".agents/skills" ]; then 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 + + if [ ! -d ".agents/skills" ]; then + echo "❌ Error: Fetch completed but '.agents/skills' is still missing. Target layout might be invalid." >&2 + exit 1 + fi + echo "✅ Skills downloaded successfully." fi echo "📂 Ensuring metadata directory structure (.mam/)..."