Bruno CLI tries to execute folder.bru #2584 (#2585)

Co-authored-by: Fabio Grande <fabio.grande@hdhome.it>
This commit is contained in:
Fabio GRANDE 2024-07-10 08:19:12 +02:00 committed by GitHub
parent 8094149fbe
commit 9f76834b2f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -417,7 +417,7 @@ const handler = async function (argv) {
if (!recursive) { if (!recursive) {
console.log(chalk.yellow('Running Folder \n')); console.log(chalk.yellow('Running Folder \n'));
const files = fs.readdirSync(filename); 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) { for (const bruFile of bruFiles) {
const bruFilepath = path.join(filename, bruFile); const bruFilepath = path.join(filename, bruFile);