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:
parent
9570076443
commit
ce316d5a0a
1 changed files with 3 additions and 3 deletions
|
@ -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[] = [];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue