From cd110f2944e9fb37cd1f21bb869d24949f6941f0 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Fri, 11 Dec 2009 00:18:29 +0100 Subject: new version, mysql binlog reset --- common/check_tools.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 common/check_tools.sh (limited to 'common/check_tools.sh') diff --git a/common/check_tools.sh b/common/check_tools.sh new file mode 100644 index 0000000..ba3640d --- /dev/null +++ b/common/check_tools.sh @@ -0,0 +1,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 +} -- cgit v1.2.3