listen on stdout when unzipping, unsticks some zips for some reason...

This commit is contained in:
Henry Oswald 2014-06-18 18:18:49 +01:00
parent 2a6ff8cc5d
commit 85befe0d57

View file

@ -9,6 +9,10 @@ module.exports = ArchiveManager =
unzip = child.spawn("unzip", [source, "-d", destination]) unzip = child.spawn("unzip", [source, "-d", destination])
# don't remove this line, some zips need
# us to listen on this for some unknow reason
unzip.stdout.on "data", (d)->
error = null error = null
unzip.stderr.on "data", (chunk) -> unzip.stderr.on "data", (chunk) ->
error ||= "" error ||= ""