Handle hadolint curl failure due to missing arch
Created by: jhchabran
Along with fixing the issue on M1 macs, I added some code to kill previous incorrect binaries. The script will now print the HTTP status of the DL and fail if curl fails to DL.
Relates to #31612 (closed)
Test plan
- Local testing with and without the invalid binary (containing
Not found
due to the previouscurl
call without-f
)