File tree Expand file tree Collapse file tree 1 file changed +2
-16
lines changed Expand file tree Collapse file tree 1 file changed +2
-16
lines changed Original file line number Diff line number Diff line change @@ -56,22 +56,7 @@ function fetch() {
5656 return ;
5757 }
5858
59- if ( ciInfo . isCI ) {
60- console . log ( `downloading ${ getBinaryName ( ) } ...` ) ;
61- } else {
62- const total = parseInt ( res . headers [ 'content-length' ] , 10 ) ;
63- bar = new ProgressBar ( `downloading ${ getBinaryName ( ) } [:bar] :rate/Kbps :percent :etas remaining` , { // jscs:ignore maximumLineLength
64- complete : '=' ,
65- incomplete : '.' ,
66- width : 20 ,
67- total : total / 1000 ,
68- } ) ;
69- }
70- } )
71- . on ( 'data' , function ( chunk ) {
72- if ( bar ) {
73- bar . tick ( chunk . length / 1000 ) ;
74- }
59+ console . log ( `downloading ${ getBinaryName ( ) } ...` ) ;
7560 } )
7661 . on ( 'error' , function ( err ) {
7762 reject ( err ) ;
@@ -82,6 +67,7 @@ function fetch() {
8267 reject ( err ) ;
8368 } )
8469 . on ( 'finish' , function ( ) {
70+ console . log ( `finished ${ getBinaryName ( ) } ...` ) ;
8571 fs . renameSync ( localPath + '.part' , localPath ) ;
8672 const CHMOD_WITH_EXEC = 0755 ;
8773 fs . chmodSync ( localPath , CHMOD_WITH_EXEC ) ;
You can’t perform that action at this time.
0 commit comments