diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2009-12-11 00:18:29 +0100 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2009-12-11 00:18:29 +0100 |
commit | cd110f2944e9fb37cd1f21bb869d24949f6941f0 (patch) | |
tree | 5642397f290b760373f24fc934b8e2171c431705 /common/check_tools.sh | |
parent | 27e0588ee8cb335fe6749f2f076fffbd8c051b84 (diff) | |
download | backup-cd110f2944e9fb37cd1f21bb869d24949f6941f0.tar.gz backup-cd110f2944e9fb37cd1f21bb869d24949f6941f0.tar.xz backup-cd110f2944e9fb37cd1f21bb869d24949f6941f0.zip |
new version, mysql binlog reset
Diffstat (limited to '')
-rw-r--r-- | common/check_tools.sh | 11 |
1 files changed, 11 insertions, 0 deletions
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 +} |