From a1fb718340c9768cd85e1683e5625169672d157c Mon Sep 17 00:00:00 2001 From: Penar Musaraj Date: Tue, 30 Jul 2019 09:53:56 -0400 Subject: [PATCH] DEV: Tweak plugin rake task console message Show "Allowing write to all repos!" message only once. --- lib/tasks/plugin.rake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/tasks/plugin.rake b/lib/tasks/plugin.rake index 77dc03d099d..6d8935ddd8a 100644 --- a/lib/tasks/plugin.rake +++ b/lib/tasks/plugin.rake @@ -16,6 +16,8 @@ task 'plugin:install_all_official' do '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| next if skip.include? name repo = map[name] || "https://github.com/discourse/#{name}" @@ -28,7 +30,6 @@ task 'plugin:install_all_official' do end if ENV['GIT_WRITE'] - STDERR.puts "Allowing write to all repos!" repo = repo.gsub("https://github.com/", "git@github.com:") repo += ".git" end