release: initialize CI variable in lib.sh

Recent change to always build tools from the local repository if the
script is run in a CI environment fails during a release build as the
variable ${CI} is not initialized. This fix addresses that issue.

Fixes: #537
Signed-off-by: Ganesh Maharaj Mahalingam <ganesh.mahalingam@intel.com>
This commit is contained in:
Ganesh Maharaj Mahalingam 2019-05-23 21:33:25 -07:00
parent 47eb1c27d1
commit d72d5daa32

View File

@ -41,7 +41,7 @@ get_from_kata_deps() {
# through CI. For the kernel, .ci/install_kata_kernel.sh file in tests
# repository will pass the kernel version as an override to this function to
# allow testing of kernels before they land in tree.
if ${CI}; then
if [ "${CI:-}" = "true" ]; then
versions_file="${GOPATH}/src/${runtime_repo}/versions.yaml"
else
versions_file="versions-${branch}.yaml"