lib/vagrant/scp/commands/scp.rb in vagrant-scp-0.5.5 vs lib/vagrant/scp/commands/scp.rb in vagrant-scp-0.5.6

- old
+ new

@@ -54,10 +54,10 @@ return nil, nil end def host host = [@file_1, @file_2].map{|file_spec| file_spec.match(/^([^:]*):/)[1] rescue nil}.compact.first - host = nil if (host.nil? || host == 0 ) + host = nil if (host.nil? || host == '' || host == 0 ) host end def net_ssh_command @file_1.include?(':') ? :download! : :upload!