mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-03-24 13:49:54 -04: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:
commit
455742d3ee
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue