From d72d5daa320483e4a63723c1add5cb532508fe7c Mon Sep 17 00:00:00 2001 From: Ganesh Maharaj Mahalingam Date: Thu, 23 May 2019 21:33:25 -0700 Subject: [PATCH] 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 --- scripts/lib.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/lib.sh b/scripts/lib.sh index 5f6559aad..1bd80453f 100644 --- a/scripts/lib.sh +++ b/scripts/lib.sh @@ -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"