From 9736f4060b7739f300e20c4d09a1779f4e507436 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Thu, 11 Oct 2018 12:15:24 +0200 Subject: bin/return-assignment: use plural for reporting broken packages ending in "s" --- bin/return-assignment | 12 +++++++++--- 1 file 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' -- cgit v1.2.3-70-g09d2