diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2023-04-28 22:30:49 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2023-04-28 22:31:07 +0900 |
commit | 08608be7f0b6960ce5a470a8b4bba807313fe1a1 (patch) | |
tree | a7ae6fff65f9bc33475a3372af5d98ec9d50ddbe /tool | |
parent | 9ea1281a7632dfa9b4ada9348ca4d6347616b70d (diff) | |
download | ruby-08608be7f0b6960ce5a470a8b4bba807313fe1a1.tar.gz |
sync_tool.rake: Adjust the location [ci skip]
Diffstat (limited to 'tool')
-rw-r--r-- | tool/rakelib/sync_tool.rake | 4 |
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' { |