From fba4343b038110ebc8692bc01bb078acbbb65970 Mon Sep 17 00:00:00 2001 From: Frank Cizmich Date: Thu, 10 Jul 2014 17:24:24 -0300 Subject: [PATCH] fixed --version --- bin/pt-mysql-summary | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/pt-mysql-summary b/bin/pt-mysql-summary index 4365ca4d..3e81af23 100755 --- a/bin/pt-mysql-summary +++ b/bin/pt-mysql-summary @@ -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