mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-14 07:06:28 +00:00
PT-2275 - "System Summary" graph breaks when perl is not available (OS summary dashboard)
- Added check for Perl binary in lib/bash/parse_options.sh - Updated tools - Updated t/lib/bash/parse_options.sh, so it includes required package alt_cmds.sh
This commit is contained in:
@@ -26,6 +26,10 @@
|
||||
# GLOBAL $PT_TMPDIR AND $TOOL MUST BE SET BEFORE USING THIS LIB!
|
||||
# XXX
|
||||
|
||||
# XXX
|
||||
# THIS LIB REQUIRES alt_cmds!
|
||||
# XXX
|
||||
|
||||
# Parsing command line options with Bash is easy until we have to dealt
|
||||
# with values that have spaces, e.g. --option="hello world". This is
|
||||
# further complicated by command line vs. config file. From the command
|
||||
@@ -87,6 +91,11 @@ usage_or_errors() {
|
||||
return 1
|
||||
fi
|
||||
|
||||
if [ -z $(_which perl) ]; then
|
||||
echo "Perl binary required to run this tool"
|
||||
return 1
|
||||
fi
|
||||
|
||||
if [ "$OPT_HELP" ]; then
|
||||
usage "$file"
|
||||
echo
|
||||
|
Reference in New Issue
Block a user