mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-19 02:05:23 +00:00
merged some-shell-tools-output-error-when-queried-for--version-1340364
This commit is contained in:
@@ -127,9 +127,10 @@ usage() {
|
|||||||
|
|
||||||
usage_or_errors() {
|
usage_or_errors() {
|
||||||
local file="$1"
|
local file="$1"
|
||||||
|
local version=""
|
||||||
|
|
||||||
if [ "$OPT_VERSION" ]; then
|
if [ "$OPT_VERSION" ]; then
|
||||||
local version=$(grep '^pt-[^ ]\+ [0-9]' "$file")
|
version=$(grep '^pt-[^ ]\+ [0-9]' "$file")
|
||||||
echo "$version"
|
echo "$version"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
@@ -88,9 +88,10 @@ usage() {
|
|||||||
|
|
||||||
usage_or_errors() {
|
usage_or_errors() {
|
||||||
local file="$1"
|
local file="$1"
|
||||||
|
local version=""
|
||||||
|
|
||||||
if [ "$OPT_VERSION" ]; then
|
if [ "$OPT_VERSION" ]; then
|
||||||
local version=$(grep '^pt-[^ ]\+ [0-9]' "$file")
|
version=$(grep '^pt-[^ ]\+ [0-9]' "$file")
|
||||||
echo "$version"
|
echo "$version"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
@@ -95,9 +95,10 @@ usage() {
|
|||||||
|
|
||||||
usage_or_errors() {
|
usage_or_errors() {
|
||||||
local file="$1"
|
local file="$1"
|
||||||
|
local version=""
|
||||||
|
|
||||||
if [ "$OPT_VERSION" ]; then
|
if [ "$OPT_VERSION" ]; then
|
||||||
local version=$(grep '^pt-[^ ]\+ [0-9]' "$file")
|
version=$(grep '^pt-[^ ]\+ [0-9]' "$file")
|
||||||
echo "$version"
|
echo "$version"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
@@ -76,9 +76,10 @@ usage() {
|
|||||||
|
|
||||||
usage_or_errors() {
|
usage_or_errors() {
|
||||||
local file="$1"
|
local file="$1"
|
||||||
|
local version=""
|
||||||
|
|
||||||
if [ "$OPT_VERSION" ]; then
|
if [ "$OPT_VERSION" ]; then
|
||||||
local version=$(grep '^pt-[^ ]\+ [0-9]' "$file")
|
version=$(grep '^pt-[^ ]\+ [0-9]' "$file")
|
||||||
echo "$version"
|
echo "$version"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user