mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 14:12:10 +08:00
DEV: Tweak plugin rake task console message
Show "Allowing write to all repos!" message only once.
This commit is contained in:
@ -16,6 +16,8 @@ task 'plugin:install_all_official' do
|
|||||||
'discourse-perspective' => 'https://github.com/discourse/discourse-perspective-api'
|
'discourse-perspective' => 'https://github.com/discourse/discourse-perspective-api'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
STDERR.puts "Allowing write to all repos!" if ENV['GIT_WRITE']
|
||||||
|
|
||||||
Plugin::Metadata::OFFICIAL_PLUGINS.each do |name|
|
Plugin::Metadata::OFFICIAL_PLUGINS.each do |name|
|
||||||
next if skip.include? name
|
next if skip.include? name
|
||||||
repo = map[name] || "https://github.com/discourse/#{name}"
|
repo = map[name] || "https://github.com/discourse/#{name}"
|
||||||
@ -28,7 +30,6 @@ task 'plugin:install_all_official' do
|
|||||||
end
|
end
|
||||||
|
|
||||||
if ENV['GIT_WRITE']
|
if ENV['GIT_WRITE']
|
||||||
STDERR.puts "Allowing write to all repos!"
|
|
||||||
repo = repo.gsub("https://github.com/", "git@github.com:")
|
repo = repo.gsub("https://github.com/", "git@github.com:")
|
||||||
repo += ".git"
|
repo += ".git"
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user