mirror of
https://github.com/go-task/task.git
synced 2025-03-17 21:08:01 +02:00
Fix compilation after updating mvdan/sh
This commit is contained in:
parent
0afb453fed
commit
db0d847e03
@ -4,6 +4,7 @@ import (
|
||||
"context"
|
||||
"errors"
|
||||
"io"
|
||||
"os"
|
||||
"strings"
|
||||
|
||||
"mvdan.cc/sh/interp"
|
||||
@ -37,10 +38,19 @@ func RunCommand(opts *RunCommandOptions) error {
|
||||
return err
|
||||
}
|
||||
|
||||
environ := opts.Env
|
||||
if len(environ) == 0 {
|
||||
environ = os.Environ()
|
||||
}
|
||||
env, err := interp.EnvFromList(environ)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
r := interp.Runner{
|
||||
Context: opts.Context,
|
||||
Dir: opts.Dir,
|
||||
Env: opts.Env,
|
||||
Env: env,
|
||||
|
||||
Exec: interp.DefaultExec,
|
||||
Open: interp.OpenDevImpls(interp.DefaultOpen),
|
||||
|
Loading…
x
Reference in New Issue
Block a user