mirror of
https://github.com/Zagrios/bs-manager.git
synced 2026-07-03 14:08:25 +02:00
[bugfix] Versions that doesn't have "CustomLevels" folder causes error when installing a playlist
This commit is contained in:
@@ -159,7 +159,10 @@ export class LocalPlaylistsManagerService {
|
||||
await this.installBPListFile(playlistPath, version);
|
||||
|
||||
const versionMapsFolder = await this.maps.getMapsFolderPath(version);
|
||||
const realDestMapsFolder = await realpath(versionMapsFolder);
|
||||
const realDestMapsFolder = await realpath(versionMapsFolder).catch(e => {
|
||||
log.error(e);
|
||||
return versionMapsFolder;
|
||||
});
|
||||
|
||||
if(realSourceMapsFolder === realDestMapsFolder) { continue; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user