From 8989ee950bbd5279e81cc0293c792274decc8ea7 Mon Sep 17 00:00:00 2001 From: Fabio Grande Date: Mon, 8 Jul 2024 22:14:15 +0200 Subject: [PATCH] Bruno CLI tries to execute folder.bru #2584 --- packages/bruno-cli/src/commands/run.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/bruno-cli/src/commands/run.js b/packages/bruno-cli/src/commands/run.js index e51daa552c..7845f88403 100644 --- a/packages/bruno-cli/src/commands/run.js +++ b/packages/bruno-cli/src/commands/run.js @@ -417,7 +417,7 @@ const handler = async function (argv) { if (!recursive) { console.log(chalk.yellow('Running Folder \n')); const files = fs.readdirSync(filename); - const bruFiles = files.filter((file) => file.endsWith('.bru')); + const bruFiles = files.filter((file) => !['folder.bru'].includes(file) && file.endsWith('.bru')); for (const bruFile of bruFiles) { const bruFilepath = path.join(filename, bruFile);