mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 17:06:31 -06:00
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:
parent
b4686934dd
commit
e47ca6633b
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user