Skip to content

Commit

Permalink
deleteProfile now also reinitialize default.json
Browse files Browse the repository at this point in the history
  • Loading branch information
JiPaix committed Aug 21, 2020
1 parent 4d66e32 commit 8340da2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/bin/profiles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`)
Expand Down

0 comments on commit 8340da2

Please sign in to comment.