Skip to content

Commit

Permalink
fix create SSH key issue
Browse files Browse the repository at this point in the history
  • Loading branch information
TimothyYe committed Feb 23, 2018
1 parent 8687770 commit 1f4a770
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cmd/skm/actions.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ func create(c *cli.Context) error {
}

args = append(args, "-f")
fileName := keyTypeSettings.KeyBaseName
args = append(args, filepath.Join(env.StorePath, alias, fileName))

if keyTypeSettings.SupportsVariableBitsize {
bits := c.String("b")
Expand All @@ -130,9 +132,6 @@ func create(c *cli.Context) error {
args = append(args, comment)
}

fileName := keyTypeSettings.KeyBaseName
args = append(args, filepath.Join(env.StorePath, alias, fileName))

skm.Execute("", "ssh-keygen", args...)
color.Green("%sSSH key [%s] created!", skm.CheckSymbol, alias)
return nil
Expand Down

0 comments on commit 1f4a770

Please sign in to comment.