summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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")