mirror of
https://github.com/discourse/discourse.git
synced 2025-02-24 03:51:35 +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.