diff options
author | Erich Eckner <git@eckner.net> | 2018-01-22 21:06:21 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-01-22 21:06:21 +0100 |
commit | 14c4f3b1c5e69c903998068dcb8bb26f45a144a3 (patch) | |
tree | 7cbd028b2fea5c8a8d39f90e640c33fe1bc2f7b0 /bin/return-assignment | |
parent | 09b5e8d6da292ceb6f9bb4a442d292f2e193330a (diff) | |
download | builder-14c4f3b1c5e69c903998068dcb8bb26f45a144a3.tar.xz |
bin/return-assignment: zgrep the correct file - we prepended something!
Diffstat (limited to 'bin/return-assignment')
-rwxr-xr-x | bin/return-assignment | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/return-assignment b/bin/return-assignment index a2961f2..a2b4c88 100755 --- a/bin/return-assignment +++ b/bin/return-assignment @@ -97,7 +97,7 @@ if [ "$5" = 'ERROR' ]; then for saved_build_log in ${saved_build_logs}; do printf '%s' "${fail_reason_identifiers}" | \ while read -r reason_id identifier; do - if zgrep -q "^$(printf '%s' "${identifier}" | base64 -d)\$" "${build_log_directory}/error/${saved_build_log}"; then + if zgrep -q "^$(printf '%s' "${identifier}" | base64 -d)\$" "${build_log_directory}/error/$1.$2.$3.$4.${saved_build_log}"; then printf ' (from_base64("%s"),%s,from_base64("%s")),' \ "$( printf '%s' "${saved_build_log}" | \ @@ -106,7 +106,7 @@ if [ "$5" = 'ERROR' ]; then )" \ "${reason_id}" \ "$( - printf '%s' "${saved_build_log}" | \ + printf '%s' "$1.$2.$3.$4.${saved_build_log}" | \ base64 -w0 )" break |