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

View File

@ -107,7 +107,7 @@ class AdminDashboardData
end
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
def failing_emails_check