From 8a7fdf0f4324cf95e76a9dfef4f73da630b2fcb2 Mon Sep 17 00:00:00 2001 From: Shane C Date: Wed, 10 Jul 2024 21:43:11 -0400 Subject: [PATCH] debug --- cmd/which.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/which.go b/cmd/which.go index f7afd16..a06f08a 100644 --- a/cmd/which.go +++ b/cmd/which.go @@ -25,6 +25,8 @@ func Which(cmd string, options BasicOptions) (dir string, err error) { sourceCommand.WriteString(fmt.Sprintf("source %s && ", value)) } + fmt.Println(cmd) + command := exec.Command("/bin/bash", "-c", "which", cmd) if options.Cwd != "" {