mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 03:41:45 +00:00
update if statement
This commit is contained in:
parent
0df8838d15
commit
4ec6e1288e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user