1
0
mirror of https://github.com/kata-containers/kata-containers.git synced 2025-05-06 15:37:33 +00:00

kata-manager: Fix containerd download

Newer containerd releases have an additional static package published.
Because of this,  download_url contains two urls causing curl to fail.
To resolve this, pick the first url from the containerd releases to
download containerd.

Fixes: 

Signed-off-by: Archana Shinde <archana.m.shinde@intel.com>
This commit is contained in:
Archana Shinde 2023-04-20 23:08:51 -07:00
parent ceefd50bd0
commit 96e8470dbe

View File

@ -160,6 +160,8 @@ github_get_release_file_url()
-r '.[] | select(.tag_name == $version) | .assets[].browser_download_url' |\
grep "/${regex}$")
download_url=$(echo $download_url | awk '{print $1}')
[ -z "$download_url" ] && die "Cannot determine download URL for version $version ($url)"
echo "$download_url"