From c7db79fe13d94c0d3592021dac129b0bb612fa7b Mon Sep 17 00:00:00 2001 From: Shane C Date: Wed, 10 Jul 2024 20:16:13 -0400 Subject: [PATCH] remove sources from which command --- cmd/which.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/which.go b/cmd/which.go index 80b5fae..168abdd 100644 --- a/cmd/which.go +++ b/cmd/which.go @@ -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