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.