Browse Source

Update version() to use new Exec() command

main
Sam 5 years ago
parent
commit
1739a81176
  1. 3
      keybase.go

3
keybase.go

@ -86,8 +86,7 @@ func (k *Keybase) loggedIn() bool { @@ -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 ""
}

Loading…
Cancel
Save