mirror of
https://github.com/ddworken/hishtory.git
synced 2025-02-08 22:50:44 +01:00
More debugging info for failing to install the update
This commit is contained in:
parent
da29b95d77
commit
ff419e71f9
@ -550,9 +550,11 @@ func Update() error {
|
|||||||
return fmt.Errorf("failed to chmod +x the update (out=%#v, err=%#v): %v", stdout.String(), stderr.String(), err)
|
return fmt.Errorf("failed to chmod +x the update (out=%#v, err=%#v): %v", stdout.String(), stderr.String(), err)
|
||||||
}
|
}
|
||||||
cmd = exec.Command("/tmp/hishtory-client", "install")
|
cmd = exec.Command("/tmp/hishtory-client", "install")
|
||||||
|
stdout = bytes.Buffer{}
|
||||||
|
stderr = bytes.Buffer{}
|
||||||
err = cmd.Run()
|
err = cmd.Run()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("failed to update: %v", err)
|
return fmt.Errorf("failed to install update (out=%#v, err=%#v): %v", stdout.String(), stderr.String(), err)
|
||||||
}
|
}
|
||||||
fmt.Printf("Successfully updated hishtory from v0.%s to %s\n", Version, downloadData.Version)
|
fmt.Printf("Successfully updated hishtory from v0.%s to %s\n", Version, downloadData.Version)
|
||||||
return nil
|
return nil
|
||||||
|
Loading…
Reference in New Issue
Block a user