1
0
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:
U-BAMS\philippe.renon 2022-08-18 20:58:13 +02:00
parent ef3fd09398
commit 9d7c35f567

View File

@ -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