@@ -57,11 +57,11 @@ function LocalBinary(){
57
57
} ;
58
58
59
59
this . downloadSync = function ( conf , destParentDir , retries ) {
60
- console . log ( 'downloading in sync' )
60
+ console . log ( 'Downloading in sync' ) ;
61
61
var that = this ;
62
62
if ( ! this . checkPath ( destParentDir ) )
63
63
fs . mkdirSync ( destParentDir ) ;
64
-
64
+
65
65
var destBinaryName = ( this . windows ) ? 'BrowserStackLocal.exe' : 'BrowserStackLocal' ;
66
66
var binaryPath = path . join ( destParentDir , destBinaryName ) ;
67
67
@@ -82,13 +82,13 @@ function LocalBinary(){
82
82
cmd = 'wget' ;
83
83
opts = [ ] ;
84
84
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' ) ;
86
86
}
87
87
opts . push ( '-O' , binaryPath , options . href ) ;
88
88
} else {
89
- cmd = ` curl` ;
89
+ cmd = ' curl' ;
90
90
opts = [ '-o' , binaryPath , options . href ] ;
91
-
91
+
92
92
if ( conf . proxyHost && conf . proxyPort ) {
93
93
opts . push ( '--proxy' , `${ conf . proxyHost } :${ conf . proxyPort } ` ) ;
94
94
}
@@ -107,7 +107,7 @@ function LocalBinary(){
107
107
return that . retryBinaryDownload ( conf , destParentDir , null , retries , binaryPath ) ;
108
108
} else {
109
109
if ( fs . existsSync ( binaryPath ) ) {
110
- fs . chmodSync ( binaryPath , '0755' )
110
+ fs . chmodSync ( binaryPath , '0755' ) ;
111
111
return binaryPath ;
112
112
} else {
113
113
console . log ( 'failed to download' ) ;
@@ -118,7 +118,7 @@ function LocalBinary(){
118
118
console . log ( 'Download failed with error' , err ) ;
119
119
return that . retryBinaryDownload ( conf , destParentDir , null , retries , binaryPath ) ;
120
120
}
121
- }
121
+ } ;
122
122
123
123
this . download = function ( conf , destParentDir , callback , retries ) {
124
124
var that = this ;
0 commit comments