Skip to content

Commit e0f108d

Browse files
committed
try to fix Windows
Signed-off-by: Grant Linville <[email protected]>
1 parent 2c846b2 commit e0f108d

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

integration/helpers.go

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
11
package integration
22

3-
import "os/exec"
3+
import (
4+
"os/exec"
5+
"runtime"
6+
)
47

58
func GPTScriptExec(args ...string) (string, error) {
69
cmd := exec.Command("../bin/gptscript", args...)
10+
if runtime.GOOS == "windows" {
11+
cmd = exec.Command("..\\bin\\gptscript.exe", args...)
12+
}
13+
714
out, err := cmd.CombinedOutput()
815
return string(out), err
916
}

0 commit comments

Comments
 (0)