mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-19 04:52:12 +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
|
||||
elif [ -n "${tool_md5:-}" ]
|
||||
then
|
||||
if [[ "${tool_md5:-} -" != "$(cd "$downloads_dir" && md5sum <"$downloaded_file")" ]]
|
||||
if [[ "$(cd "$downloads_dir" && md5sum <"$downloaded_file")" != ${tool_md5:-}* ]]
|
||||
then
|
||||
mv -f "$downloaded_file"{,.rej} && \
|
||||
verified=false
|
||||
|
Loading…
x
Reference in New Issue
Block a user