mirror of
https://github.com/webfactory/ssh-agent.git
synced 2026-04-03 16:49:07 +08:00
Do not create ~/.ssh if it's already exists ("mkdir -p" behavior)
This commit is contained in:
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");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user