summaryrefslogtreecommitdiff
path: root/bin/return-assignment
diff options
context:
space:
mode:
Diffstat (limited to 'bin/return-assignment')
-rwxr-xr-xbin/return-assignment13
1 files 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