mirror of
https://github.com/amiayweb/Hytale-F2P.git
synced 2026-02-26 19:51:57 -03:00
fix: remove broken symlink after detected
This commit is contained in:
@@ -187,9 +187,10 @@ async function getModsPath(customInstallPath = null) {
|
|||||||
} catch (e) { /* ignore */ }
|
} catch (e) { /* ignore */ }
|
||||||
|
|
||||||
if (!isBrokenLink) {
|
if (!isBrokenLink) {
|
||||||
// Ensure the Mods directory exists
|
fs.unlinkSync(modsPath); // Remove broken symlink
|
||||||
fs.mkdirSync(modsPath, { recursive: true });
|
|
||||||
}
|
}
|
||||||
|
// Ensure the Mods directory exists
|
||||||
|
fs.mkdirSync(modsPath, { recursive: true });
|
||||||
}
|
}
|
||||||
if (!fs.existsSync(disabledModsPath)) {
|
if (!fs.existsSync(disabledModsPath)) {
|
||||||
fs.mkdirSync(disabledModsPath, { recursive: true });
|
fs.mkdirSync(disabledModsPath, { recursive: true });
|
||||||
|
|||||||
Reference in New Issue
Block a user