mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-13 14:39:28 +00:00
Conditionalize lsof test in collect.sh.
This commit is contained in:
@@ -73,9 +73,13 @@ else
|
|||||||
is "1" "1" "SKIP Can't determine MySQL 5.0 error log"
|
is "1" "1" "SKIP Can't determine MySQL 5.0 error log"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cmd_ok \
|
if [ "$(which lsof 2>/dev/null)" ]; then
|
||||||
|
cmd_ok \
|
||||||
"grep -q 'COMMAND[ ]\+PID[ ]\+USER' $p-lsof" \
|
"grep -q 'COMMAND[ ]\+PID[ ]\+USER' $p-lsof" \
|
||||||
"lsof"
|
"lsof"
|
||||||
|
else
|
||||||
|
is "1" "1" "SKIP lsof not in PATH"
|
||||||
|
fi
|
||||||
|
|
||||||
cmd_ok \
|
cmd_ok \
|
||||||
"grep -q 'buf0buf.c' $p-mutex-status1" \
|
"grep -q 'buf0buf.c' $p-mutex-status1" \
|
||||||
|
Reference in New Issue
Block a user