summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-09-03 11:43:38 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-09-03 11:58:02 +0900
commitb0a7221dcf998d72efe57cd7ab75260d80941109 (patch)
tree12cc11214a9f41f9bcd9ddf8775ddf13de979ea8 /tool
parent542a1ade8033d03513647ace64e50dbf31cb5e68 (diff)
downloadruby-b0a7221dcf998d72efe57cd7ab75260d80941109.tar.gz
Touch the toplevel directory too
Diffstat (limited to 'tool')
-rwxr-xr-xtool/make-snapshot7
1 files 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")