mirror of
https://github.com/gechandesu/runcmd.git
synced 2026-02-13 08:41:51 +03:00
cmd: Use absolute Command.dir
This commit is contained in:
2
cmd.v
2
cmd.v
@@ -268,7 +268,7 @@ pub fn (mut c Command) start() !int {
|
|||||||
path: path
|
path: path
|
||||||
argv: c.args
|
argv: c.args
|
||||||
env: if c.env.len == 0 { os.environ() } else { c.env }
|
env: if c.env.len == 0 { os.environ() } else { c.env }
|
||||||
dir: c.dir
|
dir: os.abs_path(c.dir)
|
||||||
post_fork: [parent_pipes_hook]
|
post_fork: [parent_pipes_hook]
|
||||||
pre_exec: pre_exec_hooks
|
pre_exec: pre_exec_hooks
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user