mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Move 'symlinking fonts' message to STDERR (#30699)
Having it in stdout means it pollutes the output of some scripts & rake tasks, which then gets piped to other tooling
This commit is contained in:
@@ -236,7 +236,7 @@ module Discourse
|
||||
# Use discourse-fonts gem to symlink fonts and generate .scss file
|
||||
fonts_path = File.join(config.root, "public/fonts")
|
||||
if !File.exist?(fonts_path) || File.realpath(fonts_path) != DiscourseFonts.path_for_fonts
|
||||
puts "Symlinking fonts from discourse-fonts gem"
|
||||
STDERR.puts "Symlinking fonts from discourse-fonts gem"
|
||||
File.delete(fonts_path) if File.exist?(fonts_path)
|
||||
Discourse::Utils.atomic_ln_s(DiscourseFonts.path_for_fonts, fonts_path)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user