This commit is contained in:
Shane C 2024-07-10 21:43:11 -04:00
parent 060a6a49eb
commit 8a7fdf0f43
Signed by: shane
GPG key ID: E46B5FEA35B22FF9

View file

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