From e0f108d5f58d0eb233a34041e1c942c8ac37b719 Mon Sep 17 00:00:00 2001 From: Grant Linville Date: Tue, 2 Jul 2024 19:36:56 -0400 Subject: [PATCH] try to fix Windows Signed-off-by: Grant Linville --- integration/helpers.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/integration/helpers.go b/integration/helpers.go index 83cec693..8af581c3 100644 --- a/integration/helpers.go +++ b/integration/helpers.go @@ -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 }