SH проверьте, существует ли программа
if ! command -v <the_command> &> /dev/null
then
echo "<the_command> could not be found"
exit
fi
TechNyquist
if ! command -v <the_command> &> /dev/null
then
echo "<the_command> could not be found"
exit
fi