diff --git a/tool_install.sh b/tool_install.sh index 3a41fddbc..081c06261 100755 --- a/tool_install.sh +++ b/tool_install.sh @@ -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