Skip to content

Commit

Permalink
osbuild-jobsite-manager: clean up store archive after use
Browse files Browse the repository at this point in the history
  • Loading branch information
croissanne committed Mar 21, 2024
1 parent bc17204 commit d3074fc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/osbuild-jobsite-manager/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit d3074fc

Please sign in to comment.