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

print home

This commit is contained in:
shimataro 2021-02-08 23:08:27 +09:00
parent 2a6a2e5875
commit 908c50f59f
No known key found for this signature in database
GPG key ID: BE92C05736911A9D

View file

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