mirror of
https://github.com/percona/percona-toolkit.git
synced 2026-04-16 01:00:38 +08:00
many scripts failed when reading no-version-check from global config file - 1361293
This commit is contained in:
@@ -140,9 +140,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
|
||||
@@ -364,6 +365,8 @@ _parse_config_files() {
|
||||
|
||||
[ "$config_opt" = "" ] && continue
|
||||
|
||||
echo "$config_opt" | grep -v 'version-check' >/dev/null 2>&1 || continue
|
||||
|
||||
if ! [ "$HAVE_EXT_ARGV" ]; then
|
||||
config_opt="--$config_opt"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user