~percona-toolkit-dev/percona-toolkit/pt-duplicate-key-checker-docs-dont-explain-how-Size-Duplicate-Indexes-is-calculated-1415646

« back to all changes in this revision

Viewing changes to lib/bash/parse_options.sh

  • Committer: Frank Cizmich
  • Date: 2014-09-08 19:27:40 UTC
  • mfrom: (608.1.8 release-2.2.10)
  • Revision ID: frank.cizmich@percona.com-20140908192740-uab3exq8je1qbczh
merged release-2.2.10

Show diffs side-by-side

added added

removed removed

Lines of Context:
76
76
 
77
77
usage_or_errors() {
78
78
   local file="$1"
 
79
   local version=""
79
80
 
80
81
   if [ "$OPT_VERSION" ]; then
81
 
      local version=$(grep '^pt-[^ ]\+ [0-9]' "$file")
 
82
      version=$(grep '^pt-[^ ]\+ [0-9]' "$file")
82
83
      echo "$version"
83
84
      return 1
84
85
   fi