mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-21 19:34:52 +00:00
fixed --version
This commit is contained in:
@@ -88,9 +88,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