Do not create ~/.ssh if it's already exists ("mkdir -p" behavior)

This commit is contained in:
Nikolay Edigaryev 2025-01-06 23:19:03 +04:00
parent dc588b651f
commit 9a01299151

View file

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