ottomatica/slim

SSH key copy should use absolute paths

gjabell opened this issue · 2 comments

fs.copyFileSync(path.resolve('baker_rsa'), path.join(slimdir, 'baker_rsa'));

Slim command fails unless you are in the script/keys directory. Not sure how best to resolve the path in Node, guess it should be in relation to the project directory?

One way to create a relative path from current file is by using __dirname.

97e688b should fix it. Could you check if it works now?

Great! That works for me