@@ -57,11 +57,11 @@ function LocalBinary(){
5757 } ;
5858
5959 this . downloadSync = function ( conf , destParentDir , retries ) {
60- console . log ( 'downloading in sync' )
60+ console . log ( 'Downloading in sync' ) ;
6161 var that = this ;
6262 if ( ! this . checkPath ( destParentDir ) )
6363 fs . mkdirSync ( destParentDir ) ;
64-
64+
6565 var destBinaryName = ( this . windows ) ? 'BrowserStackLocal.exe' : 'BrowserStackLocal' ;
6666 var binaryPath = path . join ( destParentDir , destBinaryName ) ;
6767
@@ -82,13 +82,13 @@ function LocalBinary(){
8282 cmd = 'wget' ;
8383 opts = [ ] ;
8484 if ( conf . proxyHost && conf . proxyPort ) {
85- opts . push ( '-e' , `https_proxy=${ conf . proxyHost } :${ conf . proxyPort } ` , " --no-check-certificate" ) ;
85+ opts . push ( '-e' , `https_proxy=${ conf . proxyHost } :${ conf . proxyPort } ` , ' --no-check-certificate' ) ;
8686 }
8787 opts . push ( '-O' , binaryPath , options . href ) ;
8888 } else {
89- cmd = ` curl` ;
89+ cmd = ' curl' ;
9090 opts = [ '-o' , binaryPath , options . href ] ;
91-
91+
9292 if ( conf . proxyHost && conf . proxyPort ) {
9393 opts . push ( '--proxy' , `${ conf . proxyHost } :${ conf . proxyPort } ` ) ;
9494 }
@@ -107,7 +107,7 @@ function LocalBinary(){
107107 return that . retryBinaryDownload ( conf , destParentDir , null , retries , binaryPath ) ;
108108 } else {
109109 if ( fs . existsSync ( binaryPath ) ) {
110- fs . chmodSync ( binaryPath , '0755' )
110+ fs . chmodSync ( binaryPath , '0755' ) ;
111111 return binaryPath ;
112112 } else {
113113 console . log ( 'failed to download' ) ;
@@ -118,7 +118,7 @@ function LocalBinary(){
118118 console . log ( 'Download failed with error' , err ) ;
119119 return that . retryBinaryDownload ( conf , destParentDir , null , retries , binaryPath ) ;
120120 }
121- }
121+ } ;
122122
123123 this . download = function ( conf , destParentDir , callback , retries ) {
124124 var that = this ;
0 commit comments