Skip to content

Commit c9a64fe

Browse files
committed
Fix build after update of dependency
1 parent 504723b commit c9a64fe

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

execext/exec.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ type RunCommandOptions struct {
2424
var (
2525
// ErrNilOptions is returned when a nil options is given
2626
ErrNilOptions = errors.New("execext: nil options given")
27+
28+
parser = syntax.NewParser()
2729
)
2830

2931
// RunCommand runs a shell command
@@ -32,7 +34,7 @@ func RunCommand(opts *RunCommandOptions) error {
3234
return ErrNilOptions
3335
}
3436

35-
p, err := syntax.Parse(strings.NewReader(opts.Command), "", 0)
37+
p, err := parser.Parse(strings.NewReader(opts.Command), "")
3638
if err != nil {
3739
return err
3840
}

0 commit comments

Comments
 (0)