From 3adbb835b224fa8b6f93332b3d0592233cd031d2 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Thu, 11 Oct 2018 12:22:44 +0200 Subject: bin/return-assignment: clean up report of missing packages --- bin/return-assignment | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/bin/return-assignment b/bin/return-assignment index e15c471..1c8426e 100755 --- a/bin/return-assignment +++ b/bin/return-assignment @@ -529,11 +529,16 @@ package_errors=$( if [ -n "${package_errors}" ]; then >&2 echo 'The following packages should have been built but are missing or vice versa:' - printf '/j %s Your buildslave "%s" uploaded the wrong package(s):\n' \ - "${operator}" "${slave}" | \ + >&2 printf '%s\n' "${package_errors}" + { + printf 'Your buildslave "%s" uploaded the wrong package(s):\n' \ + "${slave}" + printf '%s\n' "${package_errors}" + } | \ + sed ' + s@^@/j '"${operator}"' @ + ' | \ sponge "${irc_dir}/in" - printf '%s\n' "${package_errors}" | \ - irc_say "${operator}" 'copy' >&2 exit 4 fi -- cgit v1.2.3-70-g09d2