From db8c33a5263c2a990fb645333cda23177e91f06a Mon Sep 17 00:00:00 2001 From: Shane C Date: Wed, 10 Jul 2024 21:41:36 -0400 Subject: [PATCH] debug --- cmd/which.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/which.go b/cmd/which.go index 7a65145..755bf6e 100644 --- a/cmd/which.go +++ b/cmd/which.go @@ -25,7 +25,7 @@ func Which(cmd string, options BasicOptions) (dir string, err error) { sourceCommand.WriteString(fmt.Sprintf("source %s && ", value)) } - command := exec.Command("which", cmd) + command := exec.Command("/bin/bash", "-c", "which", cmd) if options.Cwd != "" { command.Dir = options.Cwd