Skip config modification for updates

This commit is contained in:
David Dworken 2024-10-20 15:01:11 -07:00
parent 6849c53175
commit 55d1d2ac93
No known key found for this signature in database

View File

@ -112,7 +112,7 @@ func update(ctx context.Context) error {
if err != nil { if err != nil {
return fmt.Errorf("failed to chmod +x the update (stdout=%#v, stderr=%#v): %w", stdout.String(), stderr.String(), err) return fmt.Errorf("failed to chmod +x the update (stdout=%#v, stderr=%#v): %w", stdout.String(), stderr.String(), err)
} }
cmd = exec.Command(getTmpClientPath(), "install") cmd = exec.Command(getTmpClientPath(), "install", "--skip-update-config-modification", "--currently-installed-version", "v0."+lib.Version)
cmd.Stdout = os.Stdout cmd.Stdout = os.Stdout
stderr = bytes.Buffer{} stderr = bytes.Buffer{}
cmd.Stdin = os.Stdin cmd.Stdin = os.Stdin