From cc75eb188fb26426d272463b751dba2f378b4672 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Wed, 7 May 2014 15:00:51 -0700 Subject: [PATCH] providers/docker: support custom shell properly [GH-3697] --- plugins/providers/docker/communicator.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/providers/docker/communicator.rb b/plugins/providers/docker/communicator.rb index 1e61748c6..acf48e6b2 100644 --- a/plugins/providers/docker/communicator.rb +++ b/plugins/providers/docker/communicator.rb @@ -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 = {}