Add simple pluralize wrapper for bash output
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
d9752cb7d4
commit
cff10f74a2
1 changed files with 8 additions and 0 deletions
8
bin/pluralize
Executable file
8
bin/pluralize
Executable file
|
@ -0,0 +1,8 @@
|
||||||
|
#!/bin/bash
|
||||||
|
set -eo pipefail
|
||||||
|
|
||||||
|
if [ $2 -eq 1 -o $2 -eq -1 ]; then
|
||||||
|
echo ${1}
|
||||||
|
else
|
||||||
|
echo ${1}s
|
||||||
|
fi
|
Loading…
Reference in a new issue