Typo
This commit is contained in:
parent
e16a8adb6f
commit
ec58990715
2 changed files with 2 additions and 2 deletions
|
|
@ -125,7 +125,7 @@ func (a *App) SSH(ctx context.Context, sshArgs []string, opts sshOptions) (err e
|
|||
startSshServerOpts := []func(*liveshare.StartSSHServerOptions){}
|
||||
|
||||
if shouldGenerateSSHKeys(args, opts) && sshContext.HasKeygen() {
|
||||
keyPair, err := sshContext.GenerateSSHKey("codespaces", ssh.WithNoErrorOnExitingKey())
|
||||
keyPair, err := sshContext.GenerateSSHKey("codespaces", ssh.WithNoErrorOnExistingKey())
|
||||
if err != nil {
|
||||
return fmt.Errorf("failed to generate ssh keys: %s", err)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ type GenerateSSHKeyOptions struct {
|
|||
promptPassphrase func() (string, error)
|
||||
}
|
||||
|
||||
func WithNoErrorOnExitingKey() func(*GenerateSSHKeyOptions) {
|
||||
func WithNoErrorOnExistingKey() func(*GenerateSSHKeyOptions) {
|
||||
return func(o *GenerateSSHKeyOptions) {
|
||||
o.noErrorOnExists = true
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue