gentoo-auto-update/check_deps.sh

19 lines
366 B
Bash
Executable file
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#/bin/sh
check_bin_in_path() {
for bin in $1; do
if [ -z $(which ${bin} 2>/dev/null) ]; then
MISSING="${MISSING} ${bin}"
fi
done
}
check_bin_in_path "eix-sync emerge grep echo cat lsof awk sort"
check_bin_in_path "restart-services sendmail rm"
if [ ! -z "${MISSING}" ]; then
printf "Your missing this:${MISSING}\n"
else
printf "All looks good\n"
fi