mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-29 16:57:18 +00:00
ci: Add a failed execution check for curl
There is no checks for curl get 404 or something else. Add a check for it. Fixes: #1411 Signed-off-by: Hui Zhu <teawater@hyper.sh>
This commit is contained in:
parent
7fa03902b4
commit
4993dfffe6
@ -59,7 +59,8 @@ function install_yq() {
|
||||
local yq_version=2.3.0
|
||||
|
||||
local yq_url="https://${yq_pkg}/releases/download/${yq_version}/yq_${goos}_${goarch}"
|
||||
curl -o "${yq_path}" -LSs ${yq_url}
|
||||
curl -o "${yq_path}" -LSsf ${yq_url}
|
||||
[ $? -ne 0 ] && die "Download ${yq_url} failed"
|
||||
chmod +x ${yq_path}
|
||||
|
||||
if ! command -v "${yq_path}" >/dev/null; then
|
||||
|
Loading…
Reference in New Issue
Block a user