aboutsummaryrefslogtreecommitdiff
path: root/command.go
diff options
context:
space:
mode:
Diffstat (limited to 'command.go')
-rw-r--r--command.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/command.go b/command.go
index 74eaae3..e803a93 100644
--- a/command.go
+++ b/command.go
@@ -64,7 +64,7 @@ func NewCommand(mode, scriptPath string, startAt, endAt int) (cmd *Command, err
scriptEnd: endAt,
}
- cmd.env, err = newEnvironment(scriptPath)
+ cmd.env, err = newEnvironment(mode, scriptPath)
if err != nil {
return nil, fmt.Errorf("%s: %w", logp, err)
}