# Make sure the mogrify command is available. If this is being
# run as a cron job the which command will fail so we check the
# default location just in case.
which mogrify > /dev/null
which mogrify > /dev/null
[$? -eq 1]&&echo"Unable to run the mogrify command. Please follow the build and installation instructions at the top of the script to install the program on your system."&& exit
if[[$? -eq 1]];then
if[[ ! -e "/usr/local/bin/mogrify"]];then
echo"Unable to run the mogrify command. Please follow the build and installation instructions at the top of the script to install the program on your system."