kata-deploy: fix bash semantics error

The argument of return must be numeric.

Fixes: #6521

Signed-off-by: xyz-li <hui0787411@163.com>
This commit is contained in:
xyz-li 2023-03-23 22:39:27 +08:00
parent da676872b1
commit 8b008fc743

View File

@ -112,9 +112,9 @@ install_cached_tarball_component() {
info "Using cached tarball of ${component}"
echo "Downloading tarball from: ${jenkins_build_url}/${component_tarball_name}"
wget "${jenkins_build_url}/${component_tarball_name}" || return cleanup_and_fail
wget "${jenkins_build_url}/sha256sum-${component_tarball_name}" || return cleanup_and_fail
sha256sum -c "sha256sum-${component_tarball_name}" || return cleanup_and_fail
wget "${jenkins_build_url}/${component_tarball_name}" || return $(cleanup_and_fail)
wget "${jenkins_build_url}/sha256sum-${component_tarball_name}" || return $(cleanup_and_fail)
sha256sum -c "sha256sum-${component_tarball_name}" || return $(cleanup_and_fail)
mv "${component_tarball_name}" "${component_tarball_path}"
}