add rcfile flag

This commit is contained in:
Shane C 2024-07-04 17:47:16 -04:00
parent d219f1b005
commit 0c1ffa1cd9
Signed by: shane
GPG key ID: E46B5FEA35B22FF9

View file

@ -29,7 +29,7 @@ func NewCommand(options CommandOptions) (*LinuxCommand, 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.Args = append(command.Args, cmd.Options.Args...)