mirror of
https://github.com/webfactory/ssh-agent.git
synced 2026-04-16 06:17:24 +08:00
Do not create ~/.ssh if it's already exists ("mkdir -p" behavior)
This commit is contained in:
parent
dc588b651f
commit
9a01299151
4
index.js
4
index.js
@ -23,7 +23,9 @@ try {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const homeSsh = homePath + '/.ssh';
|
const homeSsh = homePath + '/.ssh';
|
||||||
fs.mkdirSync(homeSsh, { recursive: true });
|
if (!fs.existsSync(buildDir)) {
|
||||||
|
fs.mkdirSync(homeSsh, { recursive: true });
|
||||||
|
}
|
||||||
|
|
||||||
console.log("Starting ssh-agent");
|
console.log("Starting ssh-agent");
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user