Skip to content

Commit a2c272b

Browse files
author
Quentin Perez
committed
login: Don't print message when we are no keys
1 parent 33a25a4 commit a2c272b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/commands/login.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ type LoginArgs struct {
3232

3333
// selectKey allows to choice a key in ~/.ssh
3434
func selectKey(args *LoginArgs) error {
35-
fmt.Println("Do you want to upload an SSH key ?")
3635
home, err := config.GetHomeDir()
3736
if err != nil {
3837
return err
@@ -52,6 +51,7 @@ func selectKey(args *LoginArgs) error {
5251
if len(pubs) == 0 {
5352
return nil
5453
}
54+
fmt.Println("Do you want to upload an SSH key ?")
5555
fmt.Println("[0] I don't want to upload a key !")
5656
for i := range pubs {
5757
fmt.Printf("[%d] %s\n", i+1, pubs[i])

0 commit comments

Comments
 (0)