cfg/bin/pluralize
Knut Ahlers cff10f74a2
Add simple pluralize wrapper for bash output
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2018-08-19 11:49:54 +02:00

8 lines
96 B
Bash
Executable file

#!/bin/bash
set -eo pipefail
if [ $2 -eq 1 -o $2 -eq -1 ]; then
echo ${1}
else
echo ${1}s
fi