From ce316d5a0a72b24231182643647bbdc10f9e3cce Mon Sep 17 00:00:00 2001 From: shimataro Date: Thu, 12 Oct 2023 05:37:25 +0900 Subject: [PATCH] fix cleanup error --- src/main.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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[] = [];