From cc9a5a40898cf1ef8b9c22ba932bdb5f6b2cf006 Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 8 Feb 2013 02:09:30 +0000 Subject: [PATCH] make-snapshot: File.join * tool/make-snapshot (package): use File.join to get rid of continuous slashes. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39151 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- tool/make-snapshot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tool/make-snapshot b/tool/make-snapshot index eafd2a0cb6..eaf5ddd05f 100755 --- a/tool/make-snapshot +++ b/tool/make-snapshot @@ -244,7 +244,7 @@ def package(rev, destdir) ["gzip tarball", ".tar.gz", %w"tar czf"], ["zip archive", ".zip", %w"zip -qr"] ].collect do |mesg, ext, cmd| - file = "#{destdir}/#{v||$archname}#{ext}" + file = File.join(destdir, "#{v||$archname}#{ext}") print "creating #{mesg}... #{file}" if system(*(cmd + [file, v])) puts " done"