From f27f1d45ea20904e81dda155a802b2eb07d50942 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iiro=20J=C3=A4ppinen?= Date: Wed, 1 Jun 2022 15:42:02 +0300 Subject: [PATCH] fix: correct spelling of "0 files" --- lib/runAll.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/runAll.js b/lib/runAll.js index 63b68a159..b1e28457e 100644 --- a/lib/runAll.js +++ b/lib/runAll.js @@ -203,7 +203,9 @@ export const runAll = async ( const fileCount = task.fileList.length return { - title: `${task.pattern}${dim(` — ${fileCount} ${fileCount > 1 ? 'files' : 'file'}`)}`, + title: `${task.pattern}${dim( + ` — ${fileCount} ${fileCount === 1 ? 'file' : 'files'}` + )}`, task: async () => new Listr(subTasks, { // In sub-tasks we don't want to run concurrently