add rcfile flag
This commit is contained in:
parent
d219f1b005
commit
0c1ffa1cd9
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ func NewCommand(options CommandOptions) (*LinuxCommand, error) {
|
||||||
|
|
||||||
func (cmd *LinuxCommand) Run() error {
|
func (cmd *LinuxCommand) Run() error {
|
||||||
|
|
||||||
command := exec.Command(cmd.Options.Shell, "-c", cmd.Options.Command)
|
command := exec.Command(cmd.Options.Shell, "--rcfile", "testrc", "-c", cmd.Options.Command)
|
||||||
command.Dir = cmd.Options.Cwd
|
command.Dir = cmd.Options.Cwd
|
||||||
command.Args = append(command.Args, cmd.Options.Args...)
|
command.Args = append(command.Args, cmd.Options.Args...)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue