Skip to content

Commit

Permalink
Ensure the temp files get cleaned
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamie0 committed Mar 28, 2018
1 parent 477691a commit 4d66473
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scripts/rebuild_preview.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,9 @@ def process_track track

_debug "Done!"

rescue
ensure

temp.map { |t| File.unlink(t) }
raise $!

end

Expand Down

0 comments on commit 4d66473

Please sign in to comment.