diff --git a/lib/docker-sync/sync_strategy/unison.rb b/lib/docker-sync/sync_strategy/unison.rb index 17c5903..9cf0415 100644 --- a/lib/docker-sync/sync_strategy/unison.rb +++ b/lib/docker-sync/sync_strategy/unison.rb @@ -205,7 +205,7 @@ def start_container 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