remove sources from which command
This commit is contained in:
parent
0fb6fcc14a
commit
c7db79fe13
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ func Which(cmd string, options BasicOptions) (dir string, err error) {
|
|||
sourceCommand.WriteString(fmt.Sprintf("source %s && ", value))
|
||||
}
|
||||
|
||||
command := exec.Command(sourceCommand.String(), "which", cmd)
|
||||
command := exec.Command("which", cmd)
|
||||
|
||||
if options.Cwd != "" {
|
||||
command.Dir = options.Cwd
|
||||
|
|
Loading…
Reference in a new issue