Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/icons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorXhmikosR <xhmikosr@gmail.com>2020-12-29 22:47:32 +0300
committerGitHub <noreply@github.com>2020-12-29 22:47:32 +0300
commit610426934708869c2c8fedc65d3f3c134dfc56a8 (patch)
treebdadb2ec833e160d205d772c2d3063728f6aa59d /build
parentcd1796b5a05b74dbf07efed928378ee87045882d (diff)
build-svgs: add singular support in the message (#584)
Diffstat (limited to 'build')
-rw-r--r--build/build-svgs.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/build/build-svgs.js b/build/build-svgs.js
index 04525e2dd..b63911f61 100644
--- a/build/build-svgs.js
+++ b/build/build-svgs.js
@@ -83,7 +83,9 @@ const main = async () => {
await Promise.all(files.map(file => processFile(file, config)))
- console.log(chalk.green(`\nSuccess, ${files.length} icons prepped!`))
+ const filesLength = files.length
+
+ console.log(chalk.green(`\nSuccess, ${filesLength} icon${filesLength !== 1 ? 's' : ''} prepped!`))
console.timeEnd(timeLabel)
}