Browse Source

Update loggedIn() to use new Exec() command

main
Sam 5 years ago
parent
commit
30f10d40e1
  1. 3
      keybase.go

3
keybase.go

@ -73,8 +73,7 @@ func (k *Keybase) username() string { @@ -73,8 +73,7 @@ func (k *Keybase) username() string {
// loggedIn returns true if Keybase is currently logged in, otherwise returns false.
func (k *Keybase) loggedIn() bool {
cmd := exec.Command(k.Path, "status", "-j")
cmdOut, err := cmd.Output()
cmdOut, err := k.Exec("status", "-j")
if err != nil {
return false
}

Loading…
Cancel
Save