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