mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-18 09:43:09 +00:00
Check that pt-collect exists before starting.
This commit is contained in:
@@ -99,6 +99,11 @@ log() {
|
|||||||
echo "${1}" >&2
|
echo "${1}" >&2
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Make sure pt-collect is executable before starting.
|
||||||
|
if [ ! -x $COLLECT ]; then
|
||||||
|
die "$COLLECT not found or not executable"
|
||||||
|
fi
|
||||||
|
|
||||||
# Make the collection location
|
# Make the collection location
|
||||||
mkdir -p "${DEST}" || die "Can't make the destination directory"
|
mkdir -p "${DEST}" || die "Can't make the destination directory"
|
||||||
test -d "${DEST}" || die "${DEST} isn't a directory"
|
test -d "${DEST}" || die "${DEST} isn't a directory"
|
||||||
|
Reference in New Issue
Block a user