Commit 4ec6e128 authored by tpetr's avatar tpetr

update if statement

parent 0df8838d
...@@ -589,7 +589,7 @@ function kube::build::run_build_command_ex() { ...@@ -589,7 +589,7 @@ function kube::build::run_build_command_ex() {
--env "GOGCFLAGS=${GOGCFLAGS:-}" --env "GOGCFLAGS=${GOGCFLAGS:-}"
) )
if [ ! -z "${DOCKER_CGROUP_PARENT:-}" ]; then if [[ -n "${DOCKER_CGROUP_PARENT:-}" ]]; then
kube::log::status "Using ${DOCKER_CGROUP_PARENT} as container cgroup parent" kube::log::status "Using ${DOCKER_CGROUP_PARENT} as container cgroup parent"
docker_run_opts+=(--cgroup-parent "${DOCKER_CGROUP_PARENT}") docker_run_opts+=(--cgroup-parent "${DOCKER_CGROUP_PARENT}")
fi fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment