From 2955bc597b13524a25a833d3d5841c3b1151fb80 Mon Sep 17 00:00:00 2001 From: Pitchaya Boonsarngsuk Date: Fri, 2 Feb 2024 00:49:31 +0000 Subject: [PATCH] Fix GECKODRIVER_AUTO_INSTALL variable (#356) --- 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}`)