mirror of
https://git.sanhost.net/sanasol/hytale-f2p.git
synced 2026-02-26 06:41:47 -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