File tree 1 file changed +2
-3
lines changed
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -47,19 +47,18 @@ export async function download (geckodriverVersion: string = process.env.GECKODR
47
47
throw new Error ( `Couldn't find version property in Cargo.toml file: ${ toml } ` )
48
48
}
49
49
geckodriverVersion = version . split ( ' = ' ) . pop ( ) . slice ( 1 , - 1 )
50
- log . info ( `Detected Geckodriver v${ geckodriverVersion } to be latest` )
50
+ console . log ( `Detected Geckodriver v${ geckodriverVersion } to be latest` )
51
51
}
52
52
53
53
const url = getDownloadUrl ( geckodriverVersion )
54
- log . info ( `Downloading Geckodriver from ${ url } ` )
54
+ console . log ( `Downloading Geckodriver from ${ url } ` )
55
55
const res = await fetch ( url , fetchOpts )
56
56
57
57
if ( ! res . body ) {
58
58
throw new Error ( `Failed to download binary (statusCode ${ res . status } )` )
59
59
}
60
60
61
61
await fsp . mkdir ( targetDir , { recursive : true } )
62
-
63
62
await ( url . endsWith ( '.zip' )
64
63
? downloadZip ( res . body , targetDir )
65
64
: streamPipeline ( res . body , zlib . createGunzip ( ) , tar . extract ( targetDir ) ) )
You can’t perform that action at this time.
0 commit comments