From bc09cdbf76ffa50ccdd8dc8df7997fdd3a0eb0d6 Mon Sep 17 00:00:00 2001 From: Jason Wray Date: Thu, 8 Aug 2019 18:21:28 -0700 Subject: [build] Fix pluralization nit --- scripts/check-ci-job-skippability.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/check-ci-job-skippability.js b/scripts/check-ci-job-skippability.js index 55f940db31..5629918791 100755 --- a/scripts/check-ci-job-skippability.js +++ b/scripts/check-ci-job-skippability.js @@ -96,7 +96,7 @@ console.step(`Getting list of files changed between ${COMMIT_RANGE}`); let changedFiles = execSync(`git diff --name-only ${COMMIT_RANGE}`).toString().split('\n'); changedFiles = _.compact(changedFiles); -console.log(`${changedFiles.length} total files changed.`); +console.log(`${changedFiles.length} file${changedFiles.length == 1 ? '':'s'} changed.`); console.step(`Checking changed files for paths relevant to ${CI_JOB_NAME} job`); @@ -111,7 +111,7 @@ _.remove(changedFiles, function(changedFile) { }); if (changedFiles.length) { - console.log(`Found ${changedFiles.length} unskippable changed file${changedFiles.length > 1 ? 's':''}:\n`, changedFiles); + console.log(`Found ${changedFiles.length} unskippable changed file${changedFiles.length == 1 ? '':'s'}:\n`, changedFiles); } else { console.log(`Found no relevant changed files, so it's safe to skip the remainder of this CI job.`) if (process.env.CIRCLECI) { -- cgit v1.2.1