mirror of
https://gitea.shironeko-all.duckdns.org/shironeko/Hytale-F2P-2.git
synced 2026-02-26 18:51:46 -03:00
fix: isbrokenlink should be true to remove the symlink
This commit is contained in:
@@ -195,7 +195,7 @@ async function getModsPath(customInstallPath = null) {
|
||||
}
|
||||
} catch (e) { /* path doesn't exist at all */ }
|
||||
|
||||
if (!isBrokenLink) {
|
||||
if (isBrokenLink) {
|
||||
fs.unlinkSync(modsPath); // Remove broken symlink
|
||||
}
|
||||
if (!pathExists || isBrokenLink) {
|
||||
|
||||
Reference in New Issue
Block a user