Take PK from file into account in Git bootstrap

Signed-off-by: Hidde Beydals <hello@hidde.co>
pull/1231/head
Hidde Beydals 4 years ago
parent fffe40fbd4
commit 7bd6aedb73

@ -173,6 +173,9 @@ func bootstrapGitCmdRun(cmd *cobra.Command, args []string) error {
if bootstrapArgs.sshHostname != "" {
repositoryURL.Host = bootstrapArgs.sshHostname
}
if bootstrapArgs.privateKeyFile != "" {
secretOpts.PrivateKeyPath = bootstrapArgs.privateKeyFile
}
// Configure last as it depends on the config above.
secretOpts.SSHHostname = repositoryURL.Host

Loading…
Cancel
Save