Update loggedIn() to use new Exec() command
This commit is contained in:
@ -73,8 +73,7 @@ func (k *Keybase) username() string {
|
|||||||
|
|
||||||
// loggedIn returns true if Keybase is currently logged in, otherwise returns false.
|
// loggedIn returns true if Keybase is currently logged in, otherwise returns false.
|
||||||
func (k *Keybase) loggedIn() bool {
|
func (k *Keybase) loggedIn() bool {
|
||||||
cmd := exec.Command(k.Path, "status", "-j")
|
cmdOut, err := k.Exec("status", "-j")
|
||||||
cmdOut, err := cmd.Output()
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user