Skip to content

Commit

Permalink
Fix GECKODRIVER_AUTO_INSTALL variable
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianMwit authored Jan 30, 2024
1 parent 2e8c232 commit 05e3476
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/install.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ function downloadZip(body: NodeJS.ReadableStream, cacheDir: string) {
/**
* download on install
*/
if (process.argv[1] && process.argv[1].endsWith('/dist/install.js') && Boolean(process.env.GECKODRIVER_AUTO_INSTALL || '1')) {
if (process.argv[1] && process.argv[1].endsWith('/dist/install.js') && process.env.GECKODRIVER_AUTO_INSTALL) {
await download().then(
() => log.info('Success!'),
(err) => log.error(`Failed to install Geckodriver: ${err.stack}`)
Expand Down

0 comments on commit 05e3476

Please sign in to comment.