From 505926d12e64d4dde709c12a4e6f36ba1c09efd7 Mon Sep 17 00:00:00 2001 From: Watson Date: Mon, 25 Feb 2013 15:56:22 +0900 Subject: [PATCH] fix variable name --- lib/motion/project/builder.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/motion/project/builder.rb b/lib/motion/project/builder.rb index bc6fb4de..9c330480 100644 --- a/lib/motion/project/builder.rb +++ b/lib/motion/project/builder.rb @@ -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