From 14c4f3b1c5e69c903998068dcb8bb26f45a144a3 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Mon, 22 Jan 2018 21:06:21 +0100 Subject: bin/return-assignment: zgrep the correct file - we prepended something! --- bin/return-assignment | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin') 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 -- cgit v1.2.3-70-g09d2