mirror of
https://github.com/discourse/discourse.git
synced 2026-08-09 12:38:21 -05:00
@@ -228,7 +228,6 @@ 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
|
||||
STDOUT.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