SH Compruebe si existe el programa

if ! command -v <the_command> &> /dev/null
then
    echo "<the_command> could not be found"
    exit
fi
TechNyquist