lib/docker-sync/sync_strategy/unison.rb in docker-sync-0.7.1 vs lib/docker-sync/sync_strategy/unison.rb in docker-sync-0.7.2

- old
+ new

@@ -210,10 +210,10 @@ say_status 'command', cmd, :white if @options['verbose'] `#{cmd}` || raise('Start failed') say_status 'ok', "starting initial sync of #{container_name}", :white if @options['verbose'] # wait until container is started, then sync: sync_host_port = get_host_port(get_container_name, UNISON_CONTAINER_PORT) - cmd = "unison -testserver #{@options['src']} \"socket://#{@options['sync_host_ip']}:#{sync_host_port}\"" + cmd = "unison -testserver \"#{@options['src']}\" \"socket://#{@options['sync_host_ip']}:#{sync_host_port}\"" say_status 'command', cmd, :white if @options['verbose'] attempt = 0 max_attempt = @options['max_attempt'] || 5 loop do # noinspection RubyUnusedLocalVariable