aboutsummaryrefslogtreecommitdiffstats
path: root/tool/make-snapshot
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-09-02 00:41:45 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-09-02 00:42:23 +0900
commitf82cf05626a3020e01b2551fc0cc78a9365fe7b5 (patch)
treea55dafe26bec51459f8c177a089d291366b6e23e /tool/make-snapshot
parent007d6d15f4aeea266d4d88e0541ab45a34a1dcd4 (diff)
downloadruby-f82cf05626a3020e01b2551fc0cc78a9365fe7b5.tar.gz
Fixed the directory to be removed
Diffstat (limited to 'tool/make-snapshot')
-rwxr-xr-xtool/make-snapshot2
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/make-snapshot b/tool/make-snapshot
index d441f6218f..73a97fae0d 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