BUGFIX: missed a spot in the backup rake task

This commit is contained in:
Régis Hanol 2014-02-19 17:09:43 +01:00
parent 27f3aa6bdc
commit d5a3b4deee
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ task 'export', [:output_filename] => :environment do |t, args|
puts "Starting export..."
backup = Export::Exporter.new(Discourse.system_user.id).run
if args.output_filename.present?
puts "Moving '#{backup}' to '#{filename}'"
puts "Moving '#{backup}' to '#{args.output_filename}'"
FileUtils.mv(backup, args.output_filename)
backup = args.output_filename
end