From 0c1ffa1cd96b3a80d11767419863c43e4cc75ada Mon Sep 17 00:00:00 2001 From: Shane C Date: Thu, 4 Jul 2024 17:47:16 -0400 Subject: [PATCH] add rcfile flag --- linux/run.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux/run.go b/linux/run.go index 8009d16..e2bb35d 100644 --- a/linux/run.go +++ b/linux/run.go @@ -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...)