ADD unzip support

This commit is contained in:
RecuencoJones
2020-03-21 11:34:19 +01:00
parent ea4cba1c34
commit 7e5607f443
6 changed files with 86 additions and 4 deletions

View File

@@ -14,9 +14,6 @@ function untar({ opts, req, onSuccess, onError }) {
ungz.on('error', onError);
untar.on('error', onError);
// First we will Un-GZip, then we will untar. So once untar is completed,
// binary is downloaded into `binPath`. Verify the binary and call it good
untar.on('end', onSuccess);
req.pipe(ungz).pipe(untar);