From b56ccb68e750ed3f2c061ccf32a54087009ec0fa Mon Sep 17 00:00:00 2001 From: Jean-Charles Bailliez Date: Tue, 27 Jul 2021 09:32:55 +0200 Subject: [PATCH] Fix #573 --- index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index fb4805dd..2a25793e 100644 --- a/index.js +++ b/index.js @@ -1 +1,4 @@ -module.exports = require(`./lib${process.env.FLUENTFFMPEG_COV ? '-cov' : ''}/fluent-ffmpeg`); +const isCov = + process.env.FLUENTFFMPEG_COV === "1" || + process.env.FLUENTFFMPEG_COV === "true"; +module.exports = require(`./lib${isCov ? "-cov" : ""}/fluent-ffmpeg`);