This commit is contained in:
Shane C 2024-07-10 21:42:20 -04:00
parent db8c33a526
commit 060a6a49eb
Signed by: shane
GPG key ID: E46B5FEA35B22FF9

View file

@ -31,9 +31,9 @@ func Which(cmd string, options BasicOptions) (dir string, err error) {
command.Dir = options.Cwd command.Dir = options.Cwd
} }
for k, v := range options.Env { //for k, v := range options.Env {
command.Env = append(command.Env, fmt.Sprintf("%s=%s", k, v)) // command.Env = append(command.Env, fmt.Sprintf("%s=%s", k, v))
} //}
outputBytes, err := command.Output() outputBytes, err := command.Output()
if err != nil { if err != nil {