Ignore ^C when cleaning up at exit
This commit is contained in:
parent
5131475ae1
commit
19039471c0
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user