Skip to content

fix: replace Unix-only shell commands with cross-platform Node.js fs API#3

Open
SemPlaatsman wants to merge 1 commit intomjyoo2:masterfrom
SemPlaatsman:fix/windows-cross-platform-compat
Open

fix: replace Unix-only shell commands with cross-platform Node.js fs API#3
SemPlaatsman wants to merge 1 commit intomjyoo2:masterfrom
SemPlaatsman:fix/windows-cross-platform-compat

Conversation

@SemPlaatsman
Copy link

cloneOrPull used test -d (bash built-in, not available on Windows) to check if the repo was already cloned, causing a clone loop on Windows. listFiles used the Unix find command, which fails on Windows with "File not found".

Both are replaced with cross-platform Node.js fs/promises calls (fs.access and recursive fs.readdir). No new dependencies added.

Tested on Windows 11.

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.

1 participant