This commit is contained in:
Shane C 2024-07-10 21:36:57 -04:00
parent 69b891d598
commit 751d90c840
Signed by: shane
GPG key ID: E46B5FEA35B22FF9

View file

@ -17,6 +17,9 @@ type BasicOptions struct {
func Which(cmd string, options BasicOptions) (dir string, err error) {
fmt.Println(options.Env)
fmt.Println(options.Sources)
var sourceCommand strings.Builder
for _, value := range options.Sources {
sourceCommand.WriteString(fmt.Sprintf("source %s && ", value))