providers/docker: support custom shell properly [GH-3697]
This commit is contained in:
parent
b47df84887
commit
cc75eb188f
|
@ -57,7 +57,7 @@ module VagrantPlugins
|
||||||
# over the default configured shell. If we are using `sudo` then we
|
# over the default configured shell. If we are using `sudo` then we
|
||||||
# need to wrap the shell in a `sudo` call.
|
# need to wrap the shell in a `sudo` call.
|
||||||
shell_cmd = @machine.config.ssh.shell
|
shell_cmd = @machine.config.ssh.shell
|
||||||
shell_cmd = shell if opts[:shell]
|
shell_cmd = opts[:shell] if opts[:shell]
|
||||||
shell_cmd = "sudo -E -H #{shell_cmd}" if opts[:sudo]
|
shell_cmd = "sudo -E -H #{shell_cmd}" if opts[:sudo]
|
||||||
|
|
||||||
acc = {}
|
acc = {}
|
||||||
|
|
Loading…
Reference in New Issue