diff options
author | XhmikosR <xhmikosr@gmail.com> | 2020-12-29 22:47:32 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-29 22:47:32 +0300 |
commit | 610426934708869c2c8fedc65d3f3c134dfc56a8 (patch) | |
tree | bdadb2ec833e160d205d772c2d3063728f6aa59d /build | |
parent | cd1796b5a05b74dbf07efed928378ee87045882d (diff) |
build-svgs: add singular support in the message (#584)
Diffstat (limited to 'build')
-rw-r--r-- | build/build-svgs.js | 4 |
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) } |