Skip to content
Snippets Groups Projects
Commit 19039471 authored by Max Howell's avatar Max Howell
Browse files

Ignore ^C when cleaning up at exit

parent 5131475a
No related branches found
No related tags found
No related merge requests found
......@@ -44,7 +44,7 @@ class CurlDownloadStrategy <AbstractDownloadStrategy
begin
curl @url, '-o', @dl
rescue Exception
@dl.unlink if @dl.exist?
ignore_interrupts { @dl.unlink if @dl.exist? }
raise
end
else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment