Skip to content

Commit

Permalink
Fix: Graph Removed before exiting
Browse files Browse the repository at this point in the history
Remove the code that deletes the generated image before aptly even exits.

Fixes: #1213
  • Loading branch information
reglim committed Sep 12, 2023
1 parent 214e907 commit 0ece414
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions cmd/graph.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,6 @@ func aptlyGraph(cmd *commander.Command, args []string) error {
return err
}

defer func() {
_ = os.Remove(tempfilename)
}()

if output != "" {
err = utils.CopyFile(tempfilename, output)
if err != nil {
Expand Down

0 comments on commit 0ece414

Please sign in to comment.