From e491c3c973864af6841911770a06e381ffcd7b36 Mon Sep 17 00:00:00 2001 From: Fabio GRANDE Date: Wed, 10 Jul 2024 08:19:12 +0200 Subject: [PATCH] Bruno CLI tries to execute folder.bru #2584 (#2585) Co-authored-by: Fabio Grande --- 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);