mirror of
https://github.com/discourse/discourse.git
synced 2025-03-09 23:45:30 +08:00

When adding new fonts to our discourse-fonts gem, you may want to test these changes locally using the `path` option of the gem line in bundler. However we set a symlink for the fonts dir for public/fonts, which does not get updated if the gem path changes. This fix checks if the current symlink resolved path is equal to the DiscourseFont gem path, and if not deletes + recreates it.