providers/docker: support custom shell properly [GH-3697]

This commit is contained in:
Mitchell Hashimoto 2014-05-07 15:00:51 -07:00
parent b47df84887
commit cc75eb188f
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ module VagrantPlugins
# over the default configured shell. If we are using `sudo` then we
# need to wrap the shell in a `sudo` call.
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]
acc = {}