cfg/bin/pluralize

9 lines
96 B
Text
Raw Permalink Normal View History

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