gentoo-auto-update/check_deps.sh

19 lines
366 B
Bash
Raw Normal View History

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