diff --git a/lib/index.js b/lib/index.js index 5cace1f..c9d107c 100644 --- a/lib/index.js +++ b/lib/index.js @@ -2837,7 +2837,7 @@ function setup() { } console.log(`SSH key has been stored to ${sshDirName} successfully.`); if (backedUpFileNames.length > 0) { - console.log(`Following files are backed up in suffix "${backupSuffix}; ${backedUpFileNames.join(", ")}.`); + console.log(`Following files are backed up in suffix "${backupSuffix}"; ${backedUpFileNames.join(", ")}.`); } } /** @@ -2852,7 +2852,6 @@ function cleanup() { } else { restore(backupSuffix); - console.log(`Files that have suffix "${backupSuffix} has been restored successfully.`); } } /** @@ -2909,7 +2908,7 @@ function restore(backupSuffix) { fs_1.default.renameSync(pathNameBak, pathNameOrg); restoredFileNames.push(fileName); } - console.log(`Following files are restored; ${restoredFileNames.join(",")}`); + console.log(`Following files in suffix "${backupSuffix}" are restored; ${restoredFileNames.join(", ")}`); } /** * create ".ssh" directory diff --git a/src/main.ts b/src/main.ts index 6df1e2f..3dc4305 100644 --- a/src/main.ts +++ b/src/main.ts @@ -119,7 +119,7 @@ function setup(): void { console.log(`SSH key has been stored to ${sshDirName} successfully.`); if (backedUpFileNames.length > 0) { - console.log(`Following files are backed up in suffix "${backupSuffix}; ${backedUpFileNames.join(", ")}.`); + console.log(`Following files are backed up in suffix "${backupSuffix}"; ${backedUpFileNames.join(", ")}.`); } } @@ -135,8 +135,6 @@ function cleanup(): void { console.log(`SSH key in ${sshDirName} has been removed successfully.`); } else { restore(backupSuffix); - - console.log(`Files that have suffix "${backupSuffix} has been restored successfully.`); } } @@ -202,7 +200,7 @@ function restore(backupSuffix: string): void { fs.renameSync(pathNameBak, pathNameOrg); restoredFileNames.push(fileName); } - console.log(`Following files are restored; ${restoredFileNames.join(",")}`); + console.log(`Following files in suffix "${backupSuffix}" are restored; ${restoredFileNames.join(", ")}`); } /**