From 743210e40c3044815b91a59b5ec4d51fed132097 Mon Sep 17 00:00:00 2001 From: Apurv Barve Date: Fri, 10 Apr 2026 14:09:34 +0530 Subject: [PATCH] Make utils.sh nounset-safe by never expanding unset CGROUP_DRIVER on Windows. Signed-off-by: Apurv Barve --- script/test/utils.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/test/utils.sh b/script/test/utils.sh index 916237f991..dbfafcf635 100755 --- a/script/test/utils.sh +++ b/script/test/utils.sh @@ -163,7 +163,7 @@ fi # To allow the cri-integration test to run via CLI without explicitly setting CGROUP_DRIVER if [ $IS_WINDOWS -eq 0 ] && [ ! -v CGROUP_DRIVER ]; then echo "CGROUP_DRIVER is unset" -elif [ "$CGROUP_DRIVER" = "systemd" ]; then +elif [ "${CGROUP_DRIVER:-}" = "systemd" ]; then cat >> ${CONTAINERD_CONFIG_FILE} << EOF [plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc.options] SystemdCgroup = true