From e74b33af7a6152ce1898ee8ed71e007cb79b9491 Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Mon, 18 Jul 2022 21:19:40 +0200 Subject: [PATCH] Apply suggestions from code review --- pipeline/backend/docker/convert.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pipeline/backend/docker/convert.go b/pipeline/backend/docker/convert.go index 87eb245d91b..8ce38f5a878 100644 --- a/pipeline/backend/docker/convert.go +++ b/pipeline/backend/docker/convert.go @@ -28,13 +28,13 @@ func toConfig(proc *types.Step) *container.Config { proc.Environment["HOME"] = "c:\\root" proc.Environment["SHELL"] = "powershell.exe" proc.Entrypoint = []string{"powershell", "-noprofile", "-noninteractive", "-command"} - proc.Commands = []string{"[System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String($Env:CI_SCRIPT)) | iex"} + config.Cmd = []string{"[System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String($Env:CI_SCRIPT)) | iex"} } else { proc.Environment["CI_SCRIPT"] = generateScriptPosix(proc.Commands) proc.Environment["HOME"] = "/root" proc.Environment["SHELL"] = "/bin/sh" proc.Entrypoint = []string{"/bin/sh", "-c"} - proc.Commands = []string{"echo $CI_SCRIPT | base64 -d | /bin/sh -e"} + config.Cmd = []string{"echo $CI_SCRIPT | base64 -d | /bin/sh -e"} } }