mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 20:24:05 -06:00
Merge pull request #5225 from pfaffman/discourse-restore-sort
UX: discourse restore -- sort by date
This commit is contained in:
commit
19d04dd9eb
@ -96,7 +96,7 @@ class DiscourseCLI < Thor
|
||||
if !filename
|
||||
puts "You must provide a filename to restore. Did you mean one of the following?\n\n"
|
||||
|
||||
Dir["public/backups/default/*"].each do |f|
|
||||
Dir["public/backups/default/*"].sort_by { |filename| File.mtime(filename) }.reverse.each do |f|
|
||||
puts "#{discourse} restore #{File.basename(f)}"
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user