Add a script to check dependancies

This commit is contained in:
Alarig Le Lay 2018-05-06 11:50:53 +02:00
parent 962d57a035
commit 0db22c38be

16
check_deps.sh Normal file
View file

@ -0,0 +1,16 @@
#/bin/sh
check_bin_in_path() {
if [ -z $(which $1 2>/dev/null) ]; then
MISSING="${MISSING} $1"
fi
}
check_bin_in_path eix-sync
check_bin_in_path emerge
check_bin_in_path grep
check_bin_in_path cat
check_bin_in_path restart-services
check_bin_in_path sendmail
printf "Your missing this:${MISSING}\n"