File tree Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -29,16 +29,11 @@ export async function setupSshCredentials(): Promise<void> {
29
29
30
30
// Ensure all the required directories and files exist
31
31
// If these don't exist, we can't continue
32
- const pathsToCheck = [
33
- sshConfigDir ,
34
- identityFile ,
35
- knownHostsFile ,
36
- configFile ,
37
- ] ;
32
+ const pathsToCheck = [ sshConfigDir , identityFile , knownHostsFile ] ;
38
33
for ( const path of pathsToCheck ) {
39
34
if ( ! ( await pathExists ( path ) ) ) {
40
35
console . error (
41
- `${ path } not found. Check that the SSH configuration is valid.`
36
+ `${ path } not found. Check that the SSH configuration is valid.` ,
42
37
) ;
43
38
return ;
44
39
}
@@ -55,13 +50,13 @@ export async function setupSshCredentials(): Promise<void> {
55
50
56
51
await fs . promises . appendFile (
57
52
configFile ,
58
- `\nIdentityFile ${ pipelinesIdFile } \n`
53
+ `\nIdentityFile ${ pipelinesIdFile } \n` ,
59
54
) ;
60
55
} catch ( e ) {
61
56
console . error (
62
57
`Failed to update SSH configuration, check that SSH key configuration in Pipelines is valid. \n Check Pipelines -> SSH Keys.\n\n ${
63
58
( e as Error ) . message
64
- } `
59
+ } `,
65
60
) ;
66
61
return ;
67
62
}
@@ -75,7 +70,7 @@ export async function setupSshCredentials(): Promise<void> {
75
70
await fs . promises . appendFile ( hostsFile , knownHosts ) ;
76
71
} catch ( e ) {
77
72
console . error (
78
- 'Failed to update hosts file. \n Check Pipelines configuration for known hosts.'
73
+ 'Failed to update hosts file. \n Check Pipelines configuration for known hosts.' ,
79
74
) ;
80
75
return ;
81
76
}
You can’t perform that action at this time.
0 commit comments