From 354d0b7aea77c506f06338675ac5c4f42eb3ba0f Mon Sep 17 00:00:00 2001 From: Himeroos <52576910+manuel-leveugle@users.noreply.github.com> Date: Fri, 8 Oct 2021 19:30:22 +0200 Subject: [PATCH] Fix unison src escape --- lib/docker-sync/sync_strategy/unison.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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