diff options
author | Erich Eckner <git@eckner.net> | 2019-02-16 14:44:13 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2019-02-16 14:44:13 +0100 |
commit | a1168af0d7c72277d1b633f704d4952ec27d8bbd (patch) | |
tree | 5304b0aef9d4ee0dd7a644bdc08cf010d35e5763 | |
parent | ca8a633b38267cc609e28a1c4822eb73f5f5089d (diff) | |
download | builder-a1168af0d7c72277d1b633f704d4952ec27d8bbd.tar.xz |
bin/return-assignment: use grep -x instead of manually adding ^...$ to regex
-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 0f14d84..b0c12d7 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 -q "^$( + if zgrep -qx "$( printf '%s' "${identifier}" | \ base64 -d - )\$" \ + )" \ "${build_log_directory}/error/$1.$2.$3.$4.$5.${saved_build_log}"; then printf ' (from_base64("%s"),%s,from_base64("%s")),' \ |