aboutsummaryrefslogtreecommitdiff
path: root/vendor
diff options
context:
space:
mode:
Diffstat (limited to 'vendor')
-rw-r--r--vendor/rsync_command/lib/rsync_command/ssh_options.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/vendor/rsync_command/lib/rsync_command/ssh_options.rb b/vendor/rsync_command/lib/rsync_command/ssh_options.rb
index 494ec9d..3cc908f 100644
--- a/vendor/rsync_command/lib/rsync_command/ssh_options.rb
+++ b/vendor/rsync_command/lib/rsync_command/ssh_options.rb
@@ -32,14 +32,14 @@ class RsyncCommand
def parse_options(options)
options.map do |key, value|
- next unless value
+ next if value.nil?
# Convert Net::SSH options into OpenSSH options.
case key
when :auth_methods then opt_auth_methods(value)
when :bind_address then opt('BindAddress', value)
when :compression then opt('Compression', value ? 'yes' : 'no')
when :compression_level then opt('CompressionLevel', value.to_i)
- when :config then "-F '#{value}'"
+ when :config then value ? "-F '#{value}'" : nil
when :encryption then opt('Ciphers', [value].flatten.join(','))
when :forward_agent then opt('ForwardAgent', value)
when :global_known_hosts_file then opt('GlobalKnownHostsFile', value)