update if statement

This commit is contained in:
tpetr 2018-01-23 11:24:08 -05:00
parent 0df8838d15
commit 4ec6e1288e

View File

@ -589,7 +589,7 @@ function kube::build::run_build_command_ex() {
--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"
docker_run_opts+=(--cgroup-parent "${DOCKER_CGROUP_PARENT}")
fi