Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSH key copy should use absolute paths #3

Closed
gjabell opened this issue Mar 31, 2019 · 2 comments
Closed

SSH key copy should use absolute paths #3

gjabell opened this issue Mar 31, 2019 · 2 comments

Comments

@gjabell
Copy link
Contributor

gjabell commented Mar 31, 2019

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?

@ssmirr
Copy link
Contributor

ssmirr commented Mar 31, 2019

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?

@gjabell
Copy link
Contributor Author

gjabell commented Mar 31, 2019

Great! That works for me

@gjabell gjabell closed this as completed Mar 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants