mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-31 16:52:10 +01:00
tools: fix md5sum check on MSYS2
md5sum output has changed apparently now it outputs "<hash> *-" instead of "<hash> -"
This commit is contained in:
parent
ef3fd09398
commit
9d7c35f567
@ -191,7 +191,7 @@ function download_and_verify
|
|||||||
fi
|
fi
|
||||||
elif [ -n "${tool_md5:-}" ]
|
elif [ -n "${tool_md5:-}" ]
|
||||||
then
|
then
|
||||||
if [[ "${tool_md5:-} -" != "$(cd "$downloads_dir" && md5sum <"$downloaded_file")" ]]
|
if [[ "$(cd "$downloads_dir" && md5sum <"$downloaded_file")" != ${tool_md5:-}* ]]
|
||||||
then
|
then
|
||||||
mv -f "$downloaded_file"{,.rej} && \
|
mv -f "$downloaded_file"{,.rej} && \
|
||||||
verified=false
|
verified=false
|
||||||
|
Loading…
x
Reference in New Issue
Block a user