Skip to content

Commit

Permalink
Fix build under windows
Browse files Browse the repository at this point in the history
  • Loading branch information
ngiger committed May 7, 2014
1 parent 0b32e94 commit c5f50be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/oddb2xml/downloader.rb
Expand Up @@ -96,7 +96,7 @@ def read_xml_from_zip(target, zipfile)
bytes = nil
end
io.close if io.respond_to?(:close)
dest = "#{Downloads}/#{File.basename(target)}"
dest = "#{Downloads}/#{File.basename(entry.name)}"
File.open(dest, 'w+') { |f| f.write xml }
Oddb2xml.log "read_xml_from_zip saved as #{dest}"
end
Expand Down

0 comments on commit c5f50be

Please sign in to comment.