Skip to content
Snippets Groups Projects
Commit 10ba92f6 authored by Tom Rini's avatar Tom Rini
Browse files

fs-test.sh: Correct check_md5() test with newlines


The fs-test.sh script expected there to be a \n\r style newline at the
end of the output. This is no longer the case, so use 'tr' to remove the
\r that we get.

Fixes: (c5917b4b "dm: serial-uclass: Move a carriage return before a
        line feed")
Signed-off-by: default avatarTom Rini <trini@konsulko.com>
parent c98b171e
No related branches found
No related tags found
No related merge requests found
...@@ -400,7 +400,7 @@ check_md5() { ...@@ -400,7 +400,7 @@ check_md5() {
# md5sum in u-boot has output of form: # md5sum in u-boot has output of form:
# md5 for 01000008 ... 01100007 ==> <md5> # md5 for 01000008 ... 01100007 ==> <md5>
# the 7th field is the actual md5 # the 7th field is the actual md5
md5_src=`grep -A3 "$1" "$2" | grep "md5 for"` md5_src=`grep -A3 "$1" "$2" | grep "md5 for" | tr -d '\r'`
md5_src=($md5_src) md5_src=($md5_src)
md5_src=${md5_src[6]} md5_src=${md5_src[6]}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment