open-component-model / ocm-website

The Open Component Model Website
https://ocm.software
Apache License 2.0
3 stars 12 forks source link

fix: do not exit script if vercomp returns non-zero value #338

Closed Empiire00 closed 3 weeks ago

Empiire00 commented 3 weeks ago

What this PR does / why we need it:

This fixes a bug introduced in commit f1e6c16c613fa13b703bc4c78513d91e79e104dc.

The script uses set -e, so it will exit on any function call that returns a non-zero exit code. Since download_hash is calling the vercomp version and vercomp returns 1,2 if the arguments (version1, version2) do not match, the script will exit.

Which issue(s) this PR fixes: