sync_tool.rake: Adjust the location [ci skip]

This commit is contained in:
Nobuyoshi Nakada 2023-04-28 22:30:49 +09:00
parent 9ea1281a76
commit 08608be7f0
No known key found for this signature in database
GPG Key ID: 7CD2805BFA3770C6

View File

@ -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'
{