Update version() to use new Exec() command

This commit is contained in:
Sam
2019-09-17 23:41:35 -04:00
parent 30f10d40e1
commit 1739a81176

View File

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