From 30f10d40e113534ff78a71dbbc32679d9ec69044 Mon Sep 17 00:00:00 2001 From: Sam Date: Tue, 17 Sep 2019 23:40:36 -0400 Subject: [PATCH] Update loggedIn() to use new Exec() command --- keybase.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/keybase.go b/keybase.go index f5d4f6c..41d89ad 100644 --- a/keybase.go +++ b/keybase.go @@ -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 }