[neko] added

This commit is contained in:
2018-04-30 20:33:18 +03:00
parent 28ad6f9c81
commit c89833e80f
5 changed files with 101 additions and 4 deletions

View File

@@ -101,7 +101,7 @@ class Sdk {
} else if (this.link.endsWith('tar.gz')) {
stream = stream.pipe(tar.x({C: this.path, strip: strip}));
} else {
stream = stream.pipe(fs.createWriteStream(this.path));
stream = stream.pipe(fs.createWriteStream(path.join(this.path, this.link.split('/').pop())));
}
return ps.wait(stream);
}