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

update dist file

This commit is contained in:
shimataro 2021-02-08 23:11:39 +09:00
parent 908c50f59f
commit 175682631c
No known key found for this signature in database
GPG key ID: BE92C05736911A9D
2 changed files with 11 additions and 1 deletions

View file

@ -485,6 +485,10 @@ function getHomeDirectory() {
if (home === undefined) {
throw Error(`${homeEnv} is not defined`);
}
if (home === "/github/home") {
// Docker container
return "/root";
}
return home;
}
/**

View file

@ -63,7 +63,7 @@ function main(): void
fs.writeFileSync(fileName, file.contents, file.options);
}
console.log(`SSH key has been stored to ${dirName} successfully. / ${home}`);
console.log(`SSH key has been stored to ${dirName} successfully.`);
}
catch(err)
{
@ -84,6 +84,12 @@ function getHomeDirectory(): string
throw Error(`${homeEnv} is not defined`);
}
if(home === "/github/home")
{
// Docker container
return "/root";
}
return home;
}