mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-27 07:54:58 +00:00
fixed pt-mest --version
fixed version parsing in parse_options.sh , was incompatible with dash shell script
This commit is contained in:
@@ -76,9 +76,10 @@ usage() {
|
||||
|
||||
usage_or_errors() {
|
||||
local file="$1"
|
||||
local version=""
|
||||
|
||||
if [ "$OPT_VERSION" ]; then
|
||||
local version=$(grep '^pt-[^ ]\+ [0-9]' "$file")
|
||||
version=$(grep '^pt-[^ ]\+ [0-9]' "$file")
|
||||
echo "$version"
|
||||
return 1
|
||||
fi
|
||||
|
Reference in New Issue
Block a user