Skip to content

Commit

Permalink
correct groups check output from stderr to stdout
Browse files Browse the repository at this point in the history
  • Loading branch information
kaylendog committed Dec 14, 2022
1 parent 0be72ee commit 24428fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/drivers/ssh/ssh.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ func (d *Driver) Create() error {
if err != nil {
return errors.Wrap(err, "groups")
}
if !strings.Contains(groups.Stderr.String(), "docker") {
if !strings.Contains(groups.Stdout.String(), "docker") {
if _, err := d.exec.RunCmd(exec.Command("sudo", "usermod", "-aG", "docker", d.GetSSHUsername())); err != nil {
return errors.Wrap(err, "usermod")
}
Expand Down

0 comments on commit 24428fd

Please sign in to comment.