don't use -File, breaks existing script args. will figure out another way to deal with spaces if using custom tmpdir
This commit is contained in:
parent
5adb986f7f
commit
569a6662f0
@ -143,7 +143,7 @@ func (a *Agent) RunScript(code string, shell string, args []string, timeout int,
|
||||
switch shell {
|
||||
case "powershell":
|
||||
exe = getPowershellExe()
|
||||
cmdArgs = []string{"-NonInteractive", "-NoProfile", "-ExecutionPolicy", "Bypass", "-File", tmpfn.Name()}
|
||||
cmdArgs = []string{"-NonInteractive", "-NoProfile", "-ExecutionPolicy", "Bypass", tmpfn.Name()}
|
||||
case "python":
|
||||
exe = a.PyBin
|
||||
cmdArgs = []string{tmpfn.Name()}
|
||||
|
Loading…
Reference in New Issue
Block a user