This commit is contained in:
Shane C 2024-07-10 21:49:07 -04:00
parent f9e5426b1b
commit ad63e15564
Signed by: shane
GPG key ID: E46B5FEA35B22FF9

View file

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