Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-10-11 12:15:24 +0200
committerErich Eckner <git@eckner.net>2018-10-11 12:15:24 +0200
commit9736f4060b7739f300e20c4d09a1779f4e507436 (patch)
tree94bc3008aaf71a2f1737e52545ff21b173ea3648
parent1f60caaf2c601a18ecf25dd130fa185d4a098eea (diff)
bin/return-assignment: use plural for reporting broken packages ending in "s"
-rwxr-xr-xbin/return-assignment12
1 files changed, 9 insertions, 3 deletions
diff --git a/bin/return-assignment b/bin/return-assignment
index 2aa236d..e15c471 100755
--- a/bin/return-assignment
+++ b/bin/return-assignment
@@ -234,10 +234,16 @@ if [ "$6" = 'ERROR' ]; then
# shellcheck disable=SC2119
{
- # shellcheck disable=SC2154
- printf '%s/%s is broken (says %s)' \
+ printf '%s/%s ' \
"$5" \
- "$1" \
+ "$1"
+ if [ "${1%s}s" = "$1" ]; then
+ printf 'are'
+ else
+ printf 'is'
+ fi
+ # shellcheck disable=SC2154
+ printf ' broken (says %s)' \
"${slave}"
if [ "$1" = 'electron' ]; then
printf -- ' - as usual'