Fix unbound variable error in gce/configure.sh

Looks like UBUNTU_INSTALL_RUNC_VERSION should be optional here.
This commit is contained in:
Joe Betz 2020-03-12 16:41:25 -07:00 committed by GitHub
parent 4734543888
commit 23c358d883
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -498,7 +498,7 @@ function ensure-container-runtime {
docker version
elif [[ "${container_runtime}" == "containerd" ]]; then
# Install containerd/runc if requested
if [[ ! -z "${UBUNTU_INSTALL_CONTAINERD_VERSION:-}" || ! -z "${UBUNTU_INSTALL_RUNC_VERSION}" ]]; then
if [[ ! -z "${UBUNTU_INSTALL_CONTAINERD_VERSION:-}" || ! -z "${UBUNTU_INSTALL_RUNC_VERSION:-}" ]]; then
install-containerd-ubuntu
fi
# Verify presence and print versions of ctr, containerd, runc