mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Merge pull request #1062 from ComputerDruid/fix-which-s
Use "command -v" to test for convert instead of "which -s"
This commit is contained in:
@@ -107,7 +107,7 @@ class AdminDashboardData
|
|||||||
end
|
end
|
||||||
|
|
||||||
def image_magick_check
|
def image_magick_check
|
||||||
I18n.t('dashboard.image_magick_warning') if SiteSetting.create_thumbnails and !system("which -s convert")
|
I18n.t('dashboard.image_magick_warning') if SiteSetting.create_thumbnails and !system("command -v convert >/dev/null;")
|
||||||
end
|
end
|
||||||
|
|
||||||
def failing_emails_check
|
def failing_emails_check
|
||||||
|
|||||||
Reference in New Issue
Block a user