mirror of
https://github.com/amiayweb/Hytale-F2P.git
synced 2026-02-26 19:41:45 -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 */ }
|
} catch (e) { /* path doesn't exist at all */ }
|
||||||
|
|
||||||
if (!isBrokenLink) {
|
if (isBrokenLink) {
|
||||||
fs.unlinkSync(modsPath); // Remove broken symlink
|
fs.unlinkSync(modsPath); // Remove broken symlink
|
||||||
}
|
}
|
||||||
if (!pathExists || isBrokenLink) {
|
if (!pathExists || isBrokenLink) {
|
||||||
|
|||||||
Reference in New Issue
Block a user