From ebca0c4d4eb6c80103be47bb9f8301ac417c94af Mon Sep 17 00:00:00 2001 From: Lantao Liu Date: Wed, 3 Apr 2019 16:54:43 -0700 Subject: [PATCH] Use local env to avoid writing to passed-in readonly env. Signed-off-by: Lantao Liu --- cluster/gce/configure.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cluster/gce/configure.sh b/cluster/gce/configure.sh index 6dc35ea40..b91309c54 100755 --- a/cluster/gce/configure.sh +++ b/cluster/gce/configure.sh @@ -181,14 +181,14 @@ disabled_plugins = ["restart"] EOF chmod 644 "${config_path}" -# CONTAINERD_EXTRA_RUNTIME_HANDLER is the extra runtime handler to install. -CONTAINERD_EXTRA_RUNTIME_HANDLER=${CONTAINERD_EXTRA_RUNTIME_HANDLER:-""} -if [[ -n "${CONTAINERD_EXTRA_RUNTIME_HANDLER}" ]]; then +# containerd_extra_runtime_handler is the extra runtime handler to install. +containerd_extra_runtime_handler=${CONTAINERD_EXTRA_RUNTIME_HANDLER:-""} +if [[ -n "${containerd_extra_runtime_handler}" ]]; then cat >> ${config_path} <