Add a script to check dependancies
This commit is contained in:
parent
962d57a035
commit
0db22c38be
16
check_deps.sh
Normal file
16
check_deps.sh
Normal 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 "You’r missing this:${MISSING}\n"
|
Loading…
Reference in a new issue