From 8340da2a0cd189ce5286b30e9d194c2c1b275fc7 Mon Sep 17 00:00:00 2001 From: JiPaix Date: Fri, 21 Aug 2020 08:14:19 +0200 Subject: [PATCH] deleteProfile now also reinitialize default.json --- src/bin/profiles.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/bin/profiles.ts b/src/bin/profiles.ts index e7ab6be3..9d93fa46 100644 --- a/src/bin/profiles.ts +++ b/src/bin/profiles.ts @@ -98,6 +98,7 @@ export class Profiles extends BaseCommander { const search = profile + '.json' if (this.availableProfiles.includes(search)) { fs.unlinkSync(path.join(this.profilePath, search)) + fs.unlinkSync(this.defaultProfilePath) this.availableProfiles = this.initFolder() } else { this.log(`%danger% Profile ${profile} doesn't exist`)