diff --git a/src/main.ts b/src/main.ts index 429e697..4db1134 100644 --- a/src/main.ts +++ b/src/main.ts @@ -36,9 +36,6 @@ 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 === "") { @@ -46,6 +43,9 @@ export function main(): void { 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[] = [];