Skip to content

Commit

Permalink
Fix NameError in DockerSync::SyncStrategy::Rsync#sync_options
Browse files Browse the repository at this point in the history
Addresses EugenMayer#823.
  • Loading branch information
mmrko authored Sep 15, 2022
1 parent 8f1be6f commit d37ddce
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/docker-sync/sync_strategy/rsync.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ def sync_options
args = []

unless @options['sync_excludes'].nil?
args = excludes_list.append(Environment.default_ignores).flatten!.map { |pattern| "--exclude='#{pattern}'" } + args
excludes_list = @options['sync_excludes'].append(Environment.default_ignores).flatten
args = excludes_list.map { |pattern| "--exclude='#{pattern}'" }
end
args.push('-ap')
args.push(@options['sync_args']) if @options.key?('sync_args')
Expand Down

0 comments on commit d37ddce

Please sign in to comment.