Skip to content

Commit

Permalink
fix some errors
Browse files Browse the repository at this point in the history
Signed-off-by: Tony Worm <tony@hofstadter.io>
  • Loading branch information
verdverm committed Aug 31, 2021
1 parent 1f59219 commit a894c2c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/yagu/ssh.go
Expand Up @@ -2,6 +2,7 @@ package yagu

import (
"os"
"path/filepath"
"strings"

"github.com/go-git/go-git/v5/plumbing/transport/ssh"
Expand All @@ -18,8 +19,8 @@ func SSHCredentials(machine string) (SSHMachine, error) {
pk, err := ssh_config.GetStrict(machine, "IdentityFile")
if err != nil {
// try to load id_rsa.pub
hdir, err := os.UserHomeDir();
err != nil {
hdir, err := os.UserHomeDir()
if err != nil {
// no home dir?
return SSHMachine{}, err
}
Expand Down

0 comments on commit a894c2c

Please sign in to comment.