Skip to content

Commit

Permalink
fix: #133
Browse files Browse the repository at this point in the history
  • Loading branch information
urz9999 committed Jul 1, 2021
1 parent b9ac60b commit ad12a32
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,9 @@ export class AppComponent implements OnInit {
private showCredentialBackupMessageIfNeeded(workspace: Workspace) {
const oldAwsCredentialsPath = this.app.getOS().homedir() + '/' + environment.credentialsDestination;
const newAwsCredentialsPath = oldAwsCredentialsPath + '.leapp.bkp';
const check = workspace.sessions.length === 0 && this.app.getFs().existsSync(oldAwsCredentialsPath);
const check = workspace.sessions.length === 0 &&
this.app.getFs().existsSync(oldAwsCredentialsPath) &&
!this.app.getFs().existsSync(newAwsCredentialsPath);

this.app.logger(`Check existing credential file: ${check}`, LoggerLevel.info, this);

Expand Down

0 comments on commit ad12a32

Please sign in to comment.