index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2018-01-23 12:10:51 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-01-23 12:10:51 +0100 |
commit | 73127e25b97cd6230c0ab9b8a64af0db04c2d9e1 (patch) | |
tree | 74007f9f2f9aeaf441b4fc5da6b9ae1f0d68d079 /bin/return-assignment | |
parent | ef0f12279a548aa30e987a29732b82622d302422 (diff) |
-rwxr-xr-x | bin/return-assignment | 12 |
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}" | \ |