Skip to content

Commit f3f33b2

Browse files
fix(install): remove stale OpenClaw extension dir before reinstall
openclaw plugins install fails with "plugin already exists" on upgrades. Clean up ~/.openclaw/extensions/workit before re-registering.
1 parent 1e50cf3 commit f3f33b2

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

install.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,8 @@ ok "Codex skills linked: ~/.agents/skills/workit"
348348
# OpenClaw integration (optional)
349349
# ---------------------------------------------------------------------------
350350
if command -v openclaw > /dev/null 2>&1; then
351+
# Remove stale install before re-registering
352+
rm -rf "${HOME}/.openclaw/extensions/workit" 2>/dev/null
351353
if openclaw plugins install "$PLUGIN_DIR/" 2>/dev/null; then
352354
ok "OpenClaw plugin registered"
353355
else

0 commit comments

Comments
 (0)