mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-25 15:02:45 +00:00
utils: Fix unused parameter
Actually make use of the `requested_version` parameter in `kata-manager.sh` and added a comment. Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
This commit is contained in:
parent
601be4e63b
commit
4755d004a7
@ -330,6 +330,8 @@ github_download_package()
|
|||||||
{
|
{
|
||||||
local releases_url="${1:-}"
|
local releases_url="${1:-}"
|
||||||
local requested_version="${2:-}"
|
local requested_version="${2:-}"
|
||||||
|
|
||||||
|
# Only used for error message
|
||||||
local project="${3:-}"
|
local project="${3:-}"
|
||||||
|
|
||||||
[ -z "$releases_url" ] && die "need releases URL"
|
[ -z "$releases_url" ] && die "need releases URL"
|
||||||
@ -337,7 +339,7 @@ github_download_package()
|
|||||||
|
|
||||||
local version=$(github_resolve_version_to_download \
|
local version=$(github_resolve_version_to_download \
|
||||||
"$releases_url" \
|
"$releases_url" \
|
||||||
"$version" || true)
|
"$requested_version" || true)
|
||||||
|
|
||||||
[ -z "$version" ] && die "Unable to determine $project version to download"
|
[ -z "$version" ] && die "Unable to determine $project version to download"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user