Use "command -v" to test for convert instead of "which -s"

This commit is contained in:
Dan Johnson 2013-06-20 21:42:18 -04:00
parent 61a72c6835
commit 8009b3f036
1 changed files with 1 additions and 1 deletions

View File

@ -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