trying again with ldflags + fixed update url

This commit is contained in:
David Dworken
2022-04-08 22:56:44 -07:00
parent f2c6f86204
commit 108e1526b8
5 changed files with 6 additions and 12 deletions

View File

@ -385,7 +385,7 @@ func copyFile(src, dst string) error {
func Update(url string) error {
var stdout bytes.Buffer
var stderr bytes.Buffer
cmd := exec.Command("bash", "-c", "curl -o /tmp/hishtory-client "+url+"; chmod +x /tmp/hishtory-client")
cmd := exec.Command("bash", "-c", "curl -L -o /tmp/hishtory-client "+url+"; chmod +x /tmp/hishtory-client")
cmd.Stdout = &stdout
cmd.Stderr = &stderr
err := cmd.Run()