Skip to content

Commit

Permalink
fix cleanup error
Browse files Browse the repository at this point in the history
  • Loading branch information
shimataro committed Oct 11, 2023
1 parent 9570076 commit ce316d5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,16 @@ try {
export function main(): void {
const sshDirName = common.getSshDirectory();

// files to be created
const files = buildFilesToCreate(sshDirName);

// create ".ssh" directory
const backupSuffix = common.createBackupSuffix(sshDirName);
if (backupSuffix === "") {
createDirectory(sshDirName);
console.log(`✅SSH directory "${sshDirName}" has been created successfully.`);
}

// files to be created
const files = buildFilesToCreate(sshDirName);

// back up & create files
const createdFileNames: string[] = [];
const backedUpFileNames: string[] = [];
Expand Down

0 comments on commit ce316d5

Please sign in to comment.