From c2671fa0513c49c874810677f347d727c4ed4502 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Sat, 3 Dec 2022 01:37:46 +0900 Subject: downloader.rb: Select less components path --- tool/downloader.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tool/downloader.rb') diff --git a/tool/downloader.rb b/tool/downloader.rb index 59225ecfbd..0bcd8f31c3 100644 --- a/tool/downloader.rb +++ b/tool/downloader.rb @@ -317,7 +317,7 @@ class Downloader rescue ArgumentError abs = cache.expand_path link = abs.relative_path_from(file.parent.expand_path) - if link.to_s.size > abs.to_s.size + if link.to_s.count("/") > abs.to_s.count("/") link = abs end end -- cgit v1.2.1