Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-01-23 12:10:51 +0100
committerErich Eckner <git@eckner.net>2018-01-23 12:10:51 +0100
commit73127e25b97cd6230c0ab9b8a64af0db04c2d9e1 (patch)
tree74007f9f2f9aeaf441b4fc5da6b9ae1f0d68d079 /bin
parentef0f12279a548aa30e987a29732b82622d302422 (diff)
bin/return-assignment: cleanup linebreakremovalmess
Diffstat (limited to 'bin')
-rwxr-xr-xbin/return-assignment12
1 files changed, 2 insertions, 10 deletions
diff --git a/bin/return-assignment b/bin/return-assignment
index 2253986..cd6d30e 100755
--- a/bin/return-assignment
+++ b/bin/return-assignment
@@ -91,19 +91,11 @@ if [ "$5" = 'ERROR' ]; then
printf 'INSERT INTO `failures` (`date`,`reason`,`log_file`) VALUES'
fail_reason_identifiers=$(
{
- printf 'SELECT `fail_reasons`.`id`,to_base64(`fail_reasons`.`identifier`),"%%END%%"'
+ printf 'SELECT `fail_reasons`.`id`,replace(to_base64(`fail_reasons`.`identifier`),"\\n","")'
printf ' FROM `fail_reasons` ORDER BY `fail_reasons`.`severity`'
} | \
${mysql_command} --raw --batch | \
- sed '
- 1d
- :start
- s/\s%END%$//
- t
- N
- s/\n//g
- b start
- '
+ sed '1d'
)
for saved_build_log in ${saved_build_logs}; do
printf '%s' "${fail_reason_identifiers}" | \