mirror of
https://github.com/go-task/task.git
synced 2025-08-08 22:36:57 +02:00
Fix build after update of dependency
This commit is contained in:
@ -24,6 +24,8 @@ type RunCommandOptions struct {
|
|||||||
var (
|
var (
|
||||||
// ErrNilOptions is returned when a nil options is given
|
// ErrNilOptions is returned when a nil options is given
|
||||||
ErrNilOptions = errors.New("execext: nil options given")
|
ErrNilOptions = errors.New("execext: nil options given")
|
||||||
|
|
||||||
|
parser = syntax.NewParser()
|
||||||
)
|
)
|
||||||
|
|
||||||
// RunCommand runs a shell command
|
// RunCommand runs a shell command
|
||||||
@ -32,7 +34,7 @@ func RunCommand(opts *RunCommandOptions) error {
|
|||||||
return ErrNilOptions
|
return ErrNilOptions
|
||||||
}
|
}
|
||||||
|
|
||||||
p, err := syntax.Parse(strings.NewReader(opts.Command), "", 0)
|
p, err := parser.Parse(strings.NewReader(opts.Command), "")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user