add env to scripts
This commit is contained in:
parent
9565fea27c
commit
6ac14b6d64
6 changed files with 17 additions and 9 deletions
|
|
@ -42,7 +42,7 @@ func (a *Agent) InstallChoco() {
|
|||
return
|
||||
}
|
||||
|
||||
_, _, exitcode, err := a.RunScript(string(r.Body()), "powershell", []string{}, 900, false)
|
||||
_, _, exitcode, err := a.RunScript(string(r.Body()), "powershell", []string{}, 900, false, []string{})
|
||||
if err != nil {
|
||||
a.Logger.Debugln(err)
|
||||
a.rClient.R().SetBody(result).Post(url)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue