From a3309b19fa6385bb6b64627182226a31c0ac4403 Mon Sep 17 00:00:00 2001 From: Anteus <962868+Anteus@users.noreply.github.com> Date: Tue, 25 Aug 2026 11:32:52 +0200 Subject: [PATCH] Remove tarball zip file from update --- pkg/updates/updates.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkg/updates/updates.go b/pkg/updates/updates.go index 60788de8e98..50e16f9684f 100644 --- a/pkg/updates/updates.go +++ b/pkg/updates/updates.go @@ -288,6 +288,12 @@ func (u *Updater) downloadAndInstall(rawUrl string) error { return err } + u.Log.Info("remove tarball zip file") + err = u.OSCommand.Cmd.New([]string{"rm", zipPath}).Run() + if err != nil { + return err + } + // the `tar` terminal cannot store things in a new location without permission // so it creates it in the current directory. As such our path is fairly simple. // You won't see it because it's gitignored.