Skip to content

Commit 9a01299

Browse files
committed
Do not create ~/.ssh if it's already exists ("mkdir -p" behavior)
1 parent dc588b6 commit 9a01299

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

index.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ try {
2323
}
2424

2525
const homeSsh = homePath + '/.ssh';
26-
fs.mkdirSync(homeSsh, { recursive: true });
26+
if (!fs.existsSync(buildDir)) {
27+
fs.mkdirSync(homeSsh, { recursive: true });
28+
}
2729

2830
console.log("Starting ssh-agent");
2931

0 commit comments

Comments
 (0)