fixed --version

This commit is contained in:
Frank Cizmich
2014-07-10 17:24:24 -03:00
parent cde3e26140
commit fba4343b03

View File

@@ -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