diff --git a/cmd/osbuild-jobsite-manager/main.go b/cmd/osbuild-jobsite-manager/main.go index 7a8ee71529..c450343c76 100644 --- a/cmd/osbuild-jobsite-manager/main.go +++ b/cmd/osbuild-jobsite-manager/main.go @@ -284,6 +284,8 @@ func StepPopulate() error { errs <- err return } + defer os.Remove(file.Name()) + tw := tar.NewWriter(file) defer tw.Close() err = filepath.Walk(argStore, func(filePath string, fi os.FileInfo, err error) error {