Created
September 22, 2015 09:15
-
-
Save benvium/b8b39320c898e39a1b96 to your computer and use it in GitHub Desktop.
Bash check app is installed (in this case imagemagick)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Check imagemagick is installed | |
| # http://stackoverflow.com/questions/592620/check-if-a-program-exists-from-a-bash-script | |
| command -v convert >/dev/null 2>&1 || { echo >&2 "I require imagemagick but it's not installed. Aborting."; exit 1; } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment