Index: source/libvpx/test/decode_to_md5.sh |
=================================================================== |
--- source/libvpx/test/decode_to_md5.sh (revision 290053) |
+++ source/libvpx/test/decode_to_md5.sh (working copy) |
@@ -44,8 +44,8 @@ |
[ -e "${output_file}" ] || return 1 |
- local md5_last_frame=$(tail -n1 "${output_file}") |
- local actual_md5=$(echo "${md5_last_frame% *}" | tr -d [:space:]) |
+ local md5_last_frame="$(tail -n1 "${output_file}" | awk '{print $1}')" |
+ local actual_md5="$(echo "${md5_last_frame}" | awk '{print $1}')" |
[ "${actual_md5}" = "${expected_md5}" ] || return 1 |
} |