From 4d664734ef33c6bf093bd254581fe17f12e9196b Mon Sep 17 00:00:00 2001 From: Jamie0 Date: Wed, 28 Mar 2018 12:28:03 +0100 Subject: [PATCH] Ensure the temp files get cleaned --- scripts/rebuild_preview.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/rebuild_preview.rb b/scripts/rebuild_preview.rb index fddb1a5..b1c2553 100644 --- a/scripts/rebuild_preview.rb +++ b/scripts/rebuild_preview.rb @@ -55,10 +55,9 @@ def process_track track _debug "Done!" - rescue + ensure temp.map { |t| File.unlink(t) } - raise $! end