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");