Skip to content

Commit

Permalink
rc: stop using --noprofile --norc
Browse files Browse the repository at this point in the history
These have no effect when running bash in scripting mode.
  • Loading branch information
zimbatm committed Apr 17, 2022
1 parent 5469801 commit 66b0691
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/cmd/rc.go
Expand Up @@ -194,7 +194,7 @@ func (rc *RC) Load(previousEnv Env) (newEnv Env, err error) {

// G204: Subprocess launched with function call as argument or cmd arguments
// #nosec
cmd := exec.CommandContext(ctx, config.BashPath, "--noprofile", "--norc", "-c", arg)
cmd := exec.CommandContext(ctx, config.BashPath, "-c", arg)
cmd.Dir = wd
cmd.Env = newEnv.ToGoEnv()
cmd.Stdin = stdin
Expand Down

0 comments on commit 66b0691

Please sign in to comment.