From 4ec6e1288e041d10f9a6e9bc58da124e3f2de8c4 Mon Sep 17 00:00:00 2001 From: tpetr Date: Tue, 23 Jan 2018 11:24:08 -0500 Subject: [PATCH] update if statement --- build/common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/common.sh b/build/common.sh index 6e0027dfb59..156edd9e838 100755 --- a/build/common.sh +++ b/build/common.sh @@ -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