Skip to content

Conversation

@mdrxy
Copy link
Member

@mdrxy mdrxy commented Oct 28, 2025

instead of rm for better error handling

re: recent build fail as a result of a race condition(?)

instead of `rm` for better error handling
Copilot AI review requested due to automatic review settings October 28, 2025 19:06
@github-actions
Copy link
Contributor

Mintlify preview ID generated: preview-mdrxyf-1761678411-491188a

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR improves the safety and cross-platform compatibility of the remote repository cleanup operation by replacing a shell command with native Node.js file system API.

Key Changes:

  • Replaced the exec(["rm -rf", target]) shell command with Node.js native fs.rmSync() with appropriate options
  • Added an existence check before attempting to remove the directory

@mdrxy mdrxy merged commit bff7cb2 into main Oct 28, 2025
18 checks passed
@mdrxy mdrxy deleted the mdrxy/fix-js-refs-rm branch October 28, 2025 19:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants