1
0
Fork 0
mirror of https://github.com/shimataro/ssh-key-action.git synced 2025-06-19 22:52:10 +10:00

fix cleanup error

This commit is contained in:
shimataro 2023-10-12 05:37:25 +09:00
parent 9570076443
commit ce316d5a0a
No known key found for this signature in database
GPG key ID: BE92C05736911A9D

View file

@ -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[] = [];