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:
parent
4e9b7f6cbf
commit
dd67be3d21
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user