This commit is contained in:
Shane C 2024-07-10 21:41:36 -04:00
parent 6cbbe69223
commit db8c33a526
Signed by: shane
GPG key ID: E46B5FEA35B22FF9

View file

@ -25,7 +25,7 @@ func Which(cmd string, options BasicOptions) (dir string, err error) {
sourceCommand.WriteString(fmt.Sprintf("source %s && ", value))
}
command := exec.Command("which", cmd)
command := exec.Command("/bin/bash", "-c", "which", cmd)
if options.Cwd != "" {
command.Dir = options.Cwd