Check if we need to create SSH directory. (#6)

This commit is contained in:
Adam Mustill 2021-03-07 10:45:33 +00:00 committed by GitHub
parent 938f1ee6ef
commit 43c2295b74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -14,7 +14,10 @@ void function main() {
function ssh() {
let ssh = `${process.env['HOME']}/.ssh`
fs.mkdirSync(ssh)
if (!fs.existsSync(ssh)) {
fs.mkdirSync(ssh)
}
let authSock = '/tmp/ssh-auth.sock'
execa.sync('ssh-agent', ['-a', authSock])