Update loggedIn() to use new Exec() command

This commit is contained in:
Sam
2019-09-17 23:40:36 -04:00
parent 97cda8c249
commit 30f10d40e1

View File

@ -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
}