lib/docker-sync/sync_strategy/rsync.rb in docker-sync-1.0.1 vs lib/docker-sync/sync_strategy/rsync.rb in docker-sync-1.0.2
- old
+ new
@@ -59,13 +59,12 @@
end
end
def sync_options
args = []
- excludes_list = @options['sync_excludes'].append(Environment.default_ignores).flatten!
- unless excludes_list.nil?
- args = excludes_list.map { |pattern| "--exclude='#{pattern}'" } + args
+ unless @options['sync_excludes'].nil?
+ args = excludes_list.append(Environment.default_ignores).flatten!.map { |pattern| "--exclude='#{pattern}'" } + args
end
args.push('-ap')
args.push(@options['sync_args']) if @options.key?('sync_args')
# we do not need to user usermap/groupmap since we started our container the way that it also maps user/group like we defined
# in the config - see start_container