summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-09-01 15:41:45 (GMT)
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-09-01 15:42:23 (GMT)
commitf82cf05626a3020e01b2551fc0cc78a9365fe7b5 (patch)
treea55dafe26bec51459f8c177a089d291366b6e23e
parent007d6d15f4aeea266d4d88e0541ab45a34a1dcd4 (diff)
Fixed the directory to be removed
-rwxr-xr-xtool/make-snapshot2
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/make-snapshot b/tool/make-snapshot
index d441f62..73a97fa 100755
--- a/tool/make-snapshot
+++ b/tool/make-snapshot
@@ -507,7 +507,7 @@ after-update::
end
end.compact
ensure
- FileUtils.rm_rf(v) if v and !$exported and !$keep_temp
+ FileUtils.rm_rf(tmp ? File.join(tmp, v) : v) if v and !$exported and !$keep_temp
Dir.chdir(pwd)
end