Skip to content

A platform for community discussion. Free, open, simple.

DEV: Correct posts:recover_uploads_from_index

Sam Saffronc780d36ddc0f
diff --git a/lib/tasks/posts.rake b/lib/tasks/posts.rake
index 84021533177..34e637f9ad5 100644
--- a/lib/tasks/posts.rake
+++ b/lib/tasks/posts.rake
@@ -628,7 +628,7 @@ task 'posts:recover_uploads_from_index' => :environment do |_, args|
puts "Found existing index file at #{path}"
else
puts "Can not find index #{path} generating index this could take a while..."
- `cd #{File.dirname(path)} && find -t file > #{path}`
+ `cd #{File.dirname(path)} && find -type f > #{path}`
end
if RailsMultisite::ConnectionManagement.current_db != "default"
recover_uploads_from_index(path)