debug
This commit is contained in:
parent
6cbbe69223
commit
db8c33a526
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ func Which(cmd string, options BasicOptions) (dir string, err error) {
|
||||||
sourceCommand.WriteString(fmt.Sprintf("source %s && ", value))
|
sourceCommand.WriteString(fmt.Sprintf("source %s && ", value))
|
||||||
}
|
}
|
||||||
|
|
||||||
command := exec.Command("which", cmd)
|
command := exec.Command("/bin/bash", "-c", "which", cmd)
|
||||||
|
|
||||||
if options.Cwd != "" {
|
if options.Cwd != "" {
|
||||||
command.Dir = options.Cwd
|
command.Dir = options.Cwd
|
||||||
|
|
Loading…
Reference in a new issue