Skip to content

Commit

Permalink
try to fix Windows
Browse files Browse the repository at this point in the history
Signed-off-by: Grant Linville <[email protected]>
  • Loading branch information
g-linville committed Jul 2, 2024
1 parent 2c846b2 commit e0f108d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion integration/helpers.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
package integration

import "os/exec"
import (
"os/exec"
"runtime"
)

func GPTScriptExec(args ...string) (string, error) {
cmd := exec.Command("../bin/gptscript", args...)
if runtime.GOOS == "windows" {
cmd = exec.Command("..\\bin\\gptscript.exe", args...)
}

out, err := cmd.CombinedOutput()
return string(out), err
}

0 comments on commit e0f108d

Please sign in to comment.