From 1739a811761aa7c5ccecf0e13e4c033efc31e049 Mon Sep 17 00:00:00 2001 From: Sam Date: Tue, 17 Sep 2019 23:41:35 -0400 Subject: [PATCH] Update version() to use new Exec() command --- keybase.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/keybase.go b/keybase.go index 41d89ad..4e1e2d3 100644 --- a/keybase.go +++ b/keybase.go @@ -86,8 +86,7 @@ func (k *Keybase) loggedIn() bool { // version returns the version string of the client. func (k *Keybase) version() string { - cmd := exec.Command(k.Path, "version", "-S", "-f", "s") - cmdOut, err := cmd.Output() + cmdOut, err := k.Exec("version", "-S", "-f", "s") if err != nil { return "" }