mirror of
https://github.com/discourse/discourse.git
synced 2025-01-16 03:22:43 +08: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:
parent
6a50b3d4b4
commit
b4cb8cb204
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user