Fix: Ensure commands and skills directories exist during install

Previously, if ~/.claude already existed from a prior Claude Code
installation, the install script would skip creating the commands/
and skills/ subdirectories. This caused symlink creation to fail
silently, leaving users without access to /claude-os-init and other
commands.

This fix ensures the subdirectories are always created, regardless
of whether ~/.claude already exists.

Fixes issue where /claude-os-init command was not available after
running install.sh on systems with existing ~/.claude directory.
This commit is contained in:
William Clavier 2025-12-03 13:50:13 -05:00
parent 559205e7c0
commit 1683592ee4

View file

@ -114,6 +114,10 @@ else
echo "✅ ${USER_CLAUDE_DIR} already exists"
fi
# Ensure commands and skills subdirectories exist (even if .claude already existed)
mkdir -p "${USER_CLAUDE_DIR}/commands"
mkdir -p "${USER_CLAUDE_DIR}/skills"
# Create symlinks for commands
echo ""
echo "🔗 Setting up command symlinks..."