mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-10-23 02:23:53 +00:00
also remove from windows
This commit is contained in:
parent
666f8563df
commit
21ba0910a9
2 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,6 @@ func GenerateContainerConf(commands []string, goos string) (env map[string]strin
|
|||
env = make(map[string]string)
|
||||
if goos == "windows" {
|
||||
env["CI_SCRIPT"] = base64.StdEncoding.EncodeToString([]byte(generateScriptWindows(commands)))
|
||||
env["HOME"] = "c:\\root"
|
||||
env["SHELL"] = "powershell.exe"
|
||||
// cspell:disable-next-line
|
||||
entry = []string{"powershell", "-noprofile", "-noninteractive", "-command", "[System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String($Env:CI_SCRIPT)) | iex"}
|
||||
|
|
|
@ -53,6 +53,7 @@ fi
|
|||
unset CI_NETRC_USERNAME
|
||||
unset CI_NETRC_PASSWORD
|
||||
unset CI_SCRIPT
|
||||
chown -R $(whoami) /woodpecker
|
||||
`
|
||||
|
||||
// traceScript is a helper script that is added to the step script
|
||||
|
|
Loading…
Reference in a new issue