Fix bug where SSH didn't work properly

Forgot to set the `shell` variable properly
This commit is contained in:
Mitchell Hashimoto 2012-06-01 23:17:31 +02:00
parent 4efa9ad3cc
commit 2441961a34
1 changed files with 2 additions and 1 deletions

View File

@ -172,7 +172,8 @@ module Vagrant
# Determine the shell to execute. If we are using `sudo` then we
# need to wrap the shell in a `sudo` call.
shell = "sudo -H #{@vm.config.ssh.shell}" if sudo
shell = @vm.config.ssh.shell
shell = "sudo -H #{shell}" if sudo
# Open the channel so we can execute or command
channel = connection.open_channel do |ch|