fix promise

This commit is contained in:
Dragan Filipovic 2023-01-02 01:23:54 +01:00
parent 11a1bc7795
commit a16ae38e86
3 changed files with 9 additions and 7 deletions

View file

@ -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;