summaryrefslogtreecommitdiff
path: root/test/decode_to_md5.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test/decode_to_md5.sh')
-rwxr-xr-xtest/decode_to_md5.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/decode_to_md5.sh b/test/decode_to_md5.sh
index 6cb7d0e6e..854b74f84 100755
--- a/test/decode_to_md5.sh
+++ b/test/decode_to_md5.sh
@@ -44,8 +44,8 @@ decode_to_md5() {
[ -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
}