DEV: Fix plugin:update_all task

DEV: Fix plugin:update_all task

Reenable subtask so it loops through all plugins.

Only run for plugins that are git repositories.

diff --git a/lib/tasks/plugin.rake b/lib/tasks/plugin.rake
index 2c706c6..111b78b 100644
--- a/lib/tasks/plugin.rake
+++ b/lib/tasks/plugin.rake
@@ -62,7 +62,11 @@ task 'plugin:update_all' do |t|
   # Loop through each directory
   plugins = Dir.glob(File.expand_path('plugins/*')).select { |f| File.directory? f }
   # run plugin:update
-  plugins.each { |plugin| Rake::Task['plugin:update'].invoke(plugin) }
+  plugins.each do |plugin|
+    next unless File.directory?(plugin + "/.git")
+    Rake::Task['plugin:update'].invoke(plugin)
+    Rake::Task['plugin:update'].reenable
+  end
 end
 
 desc 'update a plugin'

GitHub sha: e47ca663

1 Like