From d8e1ab1a435deee66e6c006ea3098d217815bd06 Mon Sep 17 00:00:00 2001 From: MathieuG-P <40181755+Zagrios@users.noreply.github.com> Date: Mon, 27 Jun 2022 22:34:00 +0200 Subject: [PATCH] bug fix --- src/main/services/installation-location.service.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/services/installation-location.service.ts b/src/main/services/installation-location.service.ts index 9d1dbe78..79f9c906 100644 --- a/src/main/services/installation-location.service.ts +++ b/src/main/services/installation-location.service.ts @@ -41,6 +41,7 @@ export class InstallationLocationService { const oldDir = this.installationDirectory; const newDest = path.join(newDir, this.INSTALLATION_FOLDER); return new Promise((resolve, reject) => { + if(!this.utilsService.folderExist(oldDir)){ this.utilsService.createFolderIfNotExist(oldDir); } fs.move(oldDir, newDest, { overwrite: true }).then(() => { this._installationDirectory = newDir; this.configService.store.set(this.STORE_INSTALLATION_PATH_KEY, newDir);