DEV: Fix plugin:update_all task

Reenable subtask so it loops through all plugins.

Only run for plugins that are git repositories.
This commit is contained in:
Penar Musaraj 2019-06-12 17:21:56 -04:00
parent b4686934dd
commit e47ca6633b

View File

@ -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'