mirror of
https://github.com/easingthemes/ssh-deploy.git
synced 2025-06-22 04:22:10 +10:00
fix promise
This commit is contained in:
parent
11a1bc7795
commit
a16ae38e86
3 changed files with 9 additions and 7 deletions
|
@ -8,8 +8,8 @@ const addSshKey = (content, filename) => {
|
|||
const filePath = join(dir, filename);
|
||||
|
||||
writeToFile({ dir, filename: 'known_hosts', content: '' });
|
||||
console.log('✅ [SSH] known_hosts file ensured', dir, filename, content);
|
||||
writeToFile({ dir, filename, content, isRequired: true });
|
||||
|
||||
console.log('✅ [SSH] key added to `.ssh` dir ', dir);
|
||||
|
||||
return filePath;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue