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:
parent
2a6a2e5875
commit
908c50f59f
1 changed files with 1 additions and 8 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue