mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-26 15:31:55 +00:00
Return 0 only if no --help, --verion, or opt errors.
This commit is contained in:
@@ -59,12 +59,12 @@ usage_or_errors() {
|
||||
if [ "$OPT_VERSION" = "yes" ]; then
|
||||
local version=$(grep '^pt-[^ ]\+ [0-9]' $file)
|
||||
echo "$version"
|
||||
return 0
|
||||
return 1
|
||||
fi
|
||||
|
||||
if [ "$OPT_HELP" = "yes" ]; then
|
||||
usage "$file"
|
||||
return 0
|
||||
return 1
|
||||
fi
|
||||
|
||||
local n_errs=${#OPT_ERRS[*]}
|
||||
|
Reference in New Issue
Block a user