From 05e3476cd2da7cd15e4c0260988dc31b17703b9e Mon Sep 17 00:00:00 2001 From: Pitchaya Boonsarngsuk Date: Tue, 30 Jan 2024 19:05:41 +0000 Subject: [PATCH] Fix GECKODRIVER_AUTO_INSTALL variable --- src/install.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/install.ts b/src/install.ts index 00a3f7f6..709aa2fc 100644 --- a/src/install.ts +++ b/src/install.ts @@ -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}`)