From b0a7221dcf998d72efe57cd7ab75260d80941109 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Tue, 3 Sep 2019 11:43:38 +0900 Subject: [PATCH] Touch the toplevel directory too --- tool/make-snapshot | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tool/make-snapshot b/tool/make-snapshot index b6cd606b0d..2476df503d 100755 --- a/tool/make-snapshot +++ b/tool/make-snapshot @@ -486,8 +486,11 @@ after-update:: else FileUtils.rm_rf("gems") end - touch_all(modified, "**/*/", 0) do |name, stat| - stat.mtime > modified + if modified + touch_all(modified, "**/*/", 0) do |name, stat| + stat.mtime > modified + end + File.utime(modified, modified, ".") end unless $?.success? puts $colorize.fail(" failed")