Skip to content

fix: prevent EEXIST error when overwriting existing skill#74

Open
zerone0x wants to merge 1 commit intonumman-ali:mainfrom
zerone0x:fix/issue-73-eexist-overwrite
Open

fix: prevent EEXIST error when overwriting existing skill#74
zerone0x wants to merge 1 commit intonumman-ali:mainfrom
zerone0x:fix/issue-73-eexist-overwrite

Conversation

@zerone0x
Copy link

Summary

Fixes #73

When user confirms overwriting an existing skill during installation, cpSync fails with an EEXIST error because the destination directory already exists.

Changes

  • Add rmSync to remove existing skill directory before copying in all three install code paths:
    • installSingleLocalSkill (local path install)
    • installSpecificSkill (specific skill from subpath)
    • installFromRepo (repo install with selection)

Testing

  • All 103 existing tests pass
  • Build completes successfully

🤖 Generated with Claude Code

…ST error

When user confirms overwriting an existing skill, cpSync fails with EEXIST
because the destination directory already exists. This fix removes the
existing directory before copying in all three install paths:
- installSingleLocalSkill
- installSpecificSkill
- installFromRepo

Fixes numman-ali#73

Co-Authored-By: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] EEXIST when overwriting an existing skill during installation

1 participant