fix variable name

This commit is contained in:
Watson
2013-02-25 15:56:22 +09:00
parent f6701939b5
commit 505926d12e

View File

@@ -463,13 +463,13 @@ EOS
end
# Delete old resource files.
resource_files = resources_paths.map { |x| File.basename(x) }
resources_files = resources_paths.map { |x| File.basename(x) }
Dir.chdir(bundle_path) do
Dir.glob('*').each do |bundle_res|
bundle_res = convert_filesystem_encoding(bundle_res)
next if File.directory?(bundle_res)
next if reserved_app_bundle_files.include?(bundle_res)
next if resource_files.include?(bundle_res)
next if resources_files.include?(bundle_res)
App.warn "File `#{bundle_res}' found in app bundle but not in `#{config.resources_dir}', removing"
FileUtils.rm_rf(bundle_res)
end