Skip to content
Permalink
Browse files
Ensure the ssh configuration folder exists
Reviewed-by: ehelin, ihse
  • Loading branch information
rwestberg committed Mar 16, 2021
1 parent 6f95f73 commit 2e05c53591ac3fd62bb4bceac2e7757042ea4d3f
Showing 1 changed file with 7 additions and 0 deletions.
@@ -49,6 +49,13 @@ public Set<String> knownHosts() {

private void configureSshKey(String userName, String hostName, String sshKey) {
var cfgPath = Path.of(System.getProperty("user.home"), ".ssh");
if (!Files.isDirectory(cfgPath)) {
try {
Files.createDirectories(cfgPath);
} catch (IOException ignored) {
}
}

var cfgFile = cfgPath.resolve("config");
var existing = "";
try {

1 comment on commit 2e05c53

@openjdk-notifier
Copy link

@openjdk-notifier openjdk-notifier bot commented on 2e05c53 Mar 16, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.