Skip to content

Commit

Permalink
Update local_connector.go
Browse files Browse the repository at this point in the history
  • Loading branch information
dbbDylan authored Sep 18, 2024
1 parent 13290ea commit d183f53
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion pkg/connector/local_connector.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ func (c *localConnector) ExecuteCommand(ctx context.Context, cmd string) ([]byte
klog.V(5).InfoS("exec local command", "cmd", cmd)
// find command interpreter in env. default /bin/bash

//nolint:gosec
command := c.Cmd.CommandContext(ctx, "sudo", "-E", localShell, "-c", "\"", cmd, "\"")
if c.Password != "" {
command.SetStdin(bytes.NewBufferString(c.Password + "\n"))
Expand Down

0 comments on commit d183f53

Please sign in to comment.