mirror of
https://github.com/easingthemes/ssh-deploy.git
synced 2025-04-29 03:10:43 -04:00
fix: remove __dirname
This commit is contained in:
parent
d39592cf3a
commit
db3c3987da
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@ const { writeToFile } = require('./helpers');
|
|||
const KNOWN_HOSTS = 'known_hosts';
|
||||
const getPrivateKeyPath = (filename = '') => {
|
||||
const { HOME } = process.env;
|
||||
const dir = join(HOME || __dirname, '.ssh');
|
||||
const dir = join(HOME || '~', '.ssh');
|
||||
const knownHostsPath = join(dir, KNOWN_HOSTS);
|
||||
return {
|
||||
dir,
|
||||
|
|
Loading…
Add table
Reference in a new issue