We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 260560d commit 7b9b836Copy full SHA for 7b9b836
integration/helpers.go
@@ -1,14 +1,18 @@
1
package integration
2
3
import (
4
+ "fmt"
5
"os/exec"
6
"runtime"
7
)
8
9
func GPTScriptExec(args ...string) (string, error) {
10
cmd := exec.Command("../bin/gptscript", args...)
11
if runtime.GOOS == "windows" {
- _ = exec.Command("rename", "..\\bin\\gptscript", "gptscript.exe").Run()
12
+ err := exec.Command("rename", "..\\bin\\gptscript", "gptscript.exe").Run()
13
+ if err != nil {
14
+ fmt.Println(err.Error())
15
+ }
16
cmd = exec.Command("..\\bin\\gptscript.exe", args...)
17
}
18
0 commit comments