Skip to content

Instantly share code, notes, and snippets.

@kml
Last active December 13, 2016 23:17
Show Gist options
  • Save kml/1d589f2bc30c430adc220cdde3525282 to your computer and use it in GitHub Desktop.
Save kml/1d589f2bc30c430adc220cdde3525282 to your computer and use it in GitHub Desktop.
# config/application.rb
['md5sum', 'convert', 'mogrify', 'identify', 'file'].each do |app|
`command -v #{app} > /dev/null 2>&1`
next if $?.exitstatus == 0
abort "ERROR: command #{app.inspect} not found"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment