Update version() to use new Exec() command
This commit is contained in:
@ -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 ""
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user