execute force only once for all plugins

pull/1/merge
Romano Licker 12 years ago
parent c3ccb3b1f3
commit 507d4f8dc0
  1. 4
      setup.rb

@ -87,14 +87,14 @@ def checkout_default_plugins
config = YAML.load_file(default_plugin_file)
forced = parse_argv("--force")
config.each_pair do |key, mod_config|
Dir.chdir exec_dir
plugin_path = File.join(exec_dir, key)
if parse_argv("--force") and File.exists?(plugin_path)
if forced and File.exists?(plugin_path)
puts "Deleting #{plugin_path}.."
FileUtils.rm_rf(plugin_path)
end

Loading…
Cancel
Save