blob: ba3640d0919d0e8fbe79ceaf96cf800eaf75c408 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
# check for necessary tools
_check_tools() {
for prog in $@
do
if ! hash $prog 2>/dev/null ; then
echo "Error: This script needs '$prog'. Exiting..." >&2
exit 1
fi
done
}
|