From 1047769fb300e53304c7955bd8cc151de7c9011f Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Tue, 21 May 2019 15:31:56 +0200 Subject: bin/return-assignment: ignore leading and trailing space when matching error message regex --- bin/return-assignment | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin/return-assignment') diff --git a/bin/return-assignment b/bin/return-assignment index 01ea4cd..ba9dac4 100755 --- a/bin/return-assignment +++ b/bin/return-assignment @@ -160,10 +160,10 @@ if [ "$6" = 'ERROR' ]; then for saved_build_log in ${saved_build_logs}; do printf '%s\n' "${fail_reason_identifiers}" | \ while read -r reason_id identifier; do - if zgrep -qx "$( + if zgrep -qx "\s*$( printf '%s' "${identifier}" | \ base64 -d - )" \ + )\s*" \ "${build_log_directory}/error/$1.$2.$3.$4.$5.${saved_build_log}"; then printf ' (from_base64("%s"),%s,from_base64("%s")),' \ -- cgit v1.2.3-70-g09d2