From 9a01299151a601e0c2da990d66d07edf4ac567a9 Mon Sep 17 00:00:00 2001 From: Nikolay Edigaryev Date: Mon, 6 Jan 2025 23:19:03 +0400 Subject: [PATCH] Do not create ~/.ssh if it's already exists ("mkdir -p" behavior) --- index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 0c2e08b..ed1f2c1 100644 --- a/index.js +++ b/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");