DEV: Correct posts:recover_uploads_from_index

DEV: Correct posts:recover_uploads_from_index

Was creating a blank index file by mistake

diff --git a/lib/tasks/posts.rake b/lib/tasks/posts.rake
index 8402153..34e637f 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)

GitHub sha: c780d36d

1 Like