summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2023-04-28 22:30:49 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2023-04-28 22:31:07 +0900
commit08608be7f0b6960ce5a470a8b4bba807313fe1a1 (patch)
treea7ae6fff65f9bc33475a3372af5d98ec9d50ddbe /tool
parent9ea1281a7632dfa9b4ada9348ca4d6347616b70d (diff)
downloadruby-08608be7f0b6960ce5a470a8b4bba807313fe1a1.tar.gz
sync_tool.rake: Adjust the location [ci skip]
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'
{