summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
Diffstat (limited to 'tool')
-rw-r--r--tool/rakelib/sync_tool.rake4
1 files changed, 3 insertions, 1 deletions
diff --git a/tool/rakelib/sync_tool.rake b/tool/rakelib/sync_tool.rake
index ee69efffcb..8ea8cb0ad2 100644
--- a/tool/rakelib/sync_tool.rake
+++ b/tool/rakelib/sync_tool.rake
@@ -1,4 +1,6 @@
-task :sync_tool, [:from] do |t, from: (File.identical?(__dir__, "rakelib") ? "../ruby/tool" : __dir__)|
+task :sync_tool, [:from] do |t, from: nil|
+ from ||= (File.identical?(__dir__, "rakelib") ? "../ruby/tool" : File.dirname(__dir__))
+
require 'fileutils'
{