mirror of
https://github.com/webfactory/ssh-agent.git
synced 2025-04-21 13:58:43 +00:00
Do not create ~/.ssh if it's already exists ("mkdir -p" behavior)
This commit is contained in:
parent
dc588b651f
commit
9a01299151
1 changed files with 3 additions and 1 deletions
4
index.js
4
index.js
|
@ -23,7 +23,9 @@ try {
|
|||
}
|
||||
|
||||
const homeSsh = homePath + '/.ssh';
|
||||
fs.mkdirSync(homeSsh, { recursive: true });
|
||||
if (!fs.existsSync(buildDir)) {
|
||||
fs.mkdirSync(homeSsh, { recursive: true });
|
||||
}
|
||||
|
||||
console.log("Starting ssh-agent");
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue