catppuccin / vscode-icons

🦊 Soothing pastel icons for VSCode/VSCodium
https://marketplace.visualstudio.com/items?itemName=Catppuccin.catppuccin-vsc-icons
MIT License
599 stars 31 forks source link

refactor(scripts): pass OS path separator to `mkdtemp` #224

Closed sgoudham closed 3 months ago

sgoudham commented 3 months ago

The documentation states that:

The fsPromises.mkdtemp() method will append the six randomly selected characters directly to the prefix string. For instance, given a directory /tmp, if the intention is to create a temporary directory within /tmp, the prefix must end with a trailing platform-specific path separator (require('node:path').sep).

This PR updates the arguments to mkdtemp() to take in the OS-specific path separator to fix the issues on my linux system. The directories are now created as shown below:

image