From 12bcd06f4fa26ad8fe37049e21d008929de2eea9 Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 9 Oct 2006 14:41:24 +0000 Subject: * ext/extmk.rb, lib/fileutils.rb, lib/mkmf.rb, lib/optparse.rb, lib/shellwords.rb: get rid of shadowing outer local variable. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11112 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/fileutils.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/fileutils.rb') diff --git a/lib/fileutils.rb b/lib/fileutils.rb index c80a69e55..976b83883 100644 --- a/lib/fileutils.rb +++ b/lib/fileutils.rb @@ -212,11 +212,11 @@ module FileUtils stack.push path path = File.dirname(path) end - stack.reverse_each do |path| + stack.reverse_each do |dir| begin - fu_mkdir path, options[:mode] + fu_mkdir dir, options[:mode] rescue SystemCallError => err - raise unless File.directory?(path) + raise unless File.directory?(dir) end end end -- cgit