rojo-rbx / rokit

Next-generation toolchain manager for Roblox projects
MIT License
72 stars 13 forks source link

Fix cross-device link error when running `self-update` on Linux #63

Closed paradoxuum closed 2 months ago

paradoxuum commented 2 months ago

/tmp is often located on a different partition than /home on Linux systems, causing an error when moving the existing binary to a temporary file.

This change removes the existing Rokit binary on Linux systems. This is safe to do as the binary will be unlinked after the process ends, but is still removed from the directory structure, allowing a new file with the same path to be written to.

Closes #57