summaryrefslogtreecommitdiffstats
path: root/pkg/test/test.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/test/test.go')
-rw-r--r--pkg/test/test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/test/test.go b/pkg/test/test.go
index 38eabc6a4..da476b95c 100644
--- a/pkg/test/test.go
+++ b/pkg/test/test.go
@@ -2,11 +2,11 @@ package test
import (
"os"
- "os/exec"
"path/filepath"
"github.com/go-errors/errors"
+ "github.com/jesseduffield/lazygit/pkg/secureexec"
"github.com/jesseduffield/lazygit/pkg/utils"
)
@@ -24,7 +24,7 @@ func GenerateRepo(filename string) error {
if err := os.Chdir(testPath); err != nil {
return err
}
- if output, err := exec.Command("bash", filename).CombinedOutput(); err != nil {
+ if output, err := secureexec.Command("bash", filename).CombinedOutput(); err != nil {
return errors.New(string(output))
}