fixes
This commit is contained in:
@@ -81,6 +81,7 @@ class Sdk {
|
||||
} else {
|
||||
fse.ensureDirSync(this.path);
|
||||
const bar = new ProgressBar(`${this.tag} [:bar] :percent :etas`, {width: 40, total: 1000, clear: true});
|
||||
this.log.d('download: *%s*', this.link);
|
||||
let stream = got.stream(this.link);
|
||||
stream = stream.on('downloadProgress', (p) => bar.update(p.percent));
|
||||
if (this.link.endsWith('.zip')) {
|
||||
|
||||
Reference in New Issue
Block a user