Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin/return-assignment
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-05-21 15:31:56 +0200
committerErich Eckner <git@eckner.net>2019-05-21 15:31:56 +0200
commit1047769fb300e53304c7955bd8cc151de7c9011f (patch)
tree71f7c6f9d5caac0107c3d2492f984b344d78cc1e /bin/return-assignment
parent167e29229fe975ca16ff8fba26e7e2d83dfc653b (diff)
bin/return-assignment: ignore leading and trailing space when matching error message regex
Diffstat (limited to 'bin/return-assignment')
-rwxr-xr-xbin/return-assignment4
1 files changed, 2 insertions, 2 deletions
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")),' \