1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2025-03-03 15:02:35 +02:00

docs(command): Clarify runExecutable Env usage (#1264)

* Clarify runExecutable Env usage

* remove trailing spaces
This commit is contained in:
Christopher Fenner 2020-03-12 09:00:51 +01:00 committed by GitHub
parent 4e9b7f6cbf
commit dd67be3d21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -66,6 +66,8 @@ func (c *Command) RunShell(shell, script string) error {
}
// RunExecutable runs the specified executable with parameters
// !! While the cmd.Env is applied during command execution, it is NOT involved when the actual executable is resolved.
// Thus the executable needs to be on the PATH of the current process and it is not sufficient to alter the PATH on cmd.Env.
func (c *Command) RunExecutable(executable string, params ...string) error {
_out, _err := prepareOut(c.stdout, c.stderr)